Does anyone have any good ideas for converting a word value storing millivolts, into to a xx.x decimal serial output?
I know the PICAXE doesn't support FP - but hoping I could send (mV/100)&"."& (mV-(mV/100)*100 ' Get remainder)
ie: 1240mV - 12.4V
1240/100 = 12 (x)
12*100 = 1200
1240-1200 = 40
x&.&y = 12.40
This fails for 1260 however due to the rounding...
Any ideas?
I know the PICAXE doesn't support FP - but hoping I could send (mV/100)&"."& (mV-(mV/100)*100 ' Get remainder)
ie: 1240mV - 12.4V
1240/100 = 12 (x)
12*100 = 1200
1240-1200 = 40
x&.&y = 12.40
This fails for 1260 however due to the rounding...
Any ideas?