Displaying decimal values
Anthony240
Posts: 24
I have been working with the basic stamp trying to measure salinity.· I have finally got the circuit to measure changes in resistance when I place my probes in different salt water solutions.· I now have ran into another problem.· I cannot display the numbers in decimal values.· Anything below 1 shows up as 0.· I am needing to display salinity as specific gravity and those numbers are around 1.023-1.028
thanks
thanks
Comments
manualy with the debug camand.
here is a peace of code to give you an idea:
number CON 1023
DO
DEBUG HOME, CR, DEC1 number/1000, ".", DEC3 number - 1000
LOOP
try it. it works
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax