PBP can only handle integer, it clips off the .874 dec portion.
where analog in is 0-1024 I would do something like this, tho your scaling would vary :
Analog_In_1:
ADCIN 1, AIN1
Volts_1=AIN1*50/51/2
Start_Seconds=AIN1*50/51/2
HI_1 = Volts_1/100
LOW_1 = Volts_1//100
Lcdout $fe,$c0,"Temp.: ",#HI_1,".",#LOW_1,"°C"
Return
So work in values*100
Divide by 100 for the integer
get the modulus of the Divide by 100 for the floating portion
if you support longs even better!
note // is modulus
I thought B0 was reserved for Byte zero, but I may be thinking of something else.
Bookmarks