I don't see how it would be possible, since PBP uses 16 bit integer math (32-bit with PBPL and PIC18 parts). I think you'd need floating point math to get any useable range and resolution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello all
there's math routines for logarithms ?
thank you
I've been through most of the command header files and help files and I have not seen any commands for Logarithms.
I don't see how it would be possible, since PBP uses 16 bit integer math (32-bit with PBPL and PIC18 parts). I think you'd need floating point math to get any useable range and resolution.
thanks
btw, where's the float math ? ;-)