PDA

View Full Version : floating point command for pic basic pro



trouble
- 13th April 2010, 07:00
hi, i'm doing the project for measuring distance for ultrasonic sensor,i got all the formulas for the distance but pic basic pro can't read the floating point..can anybody help me to solve the probs...

Acetronics2
- 13th April 2010, 09:47
Hi, Trouble

Floating point meters are integer millimeters ...

just format your output like this :

millimeters/1000 "." millimeters // 1000 " meters "...

it will show XXX.YYY meters ...

Alain