PDA

View Full Version : dec number to show on lcd (maths)



savnik
- 28th August 2007, 17:55
I have the number (dec) 19307 , and i want to show on LCD 87,5
The number change up +1 or down -1 .
If the number change to 19308 i want to show 87,6

19309 > 87,7
19310 > 87,9
19311 > 87,9
19312 > 88,0
19313 > 88,1
etc.

I spend a few hours but nothing.
I can't solve this problem.

BigWumpus
- 28th August 2007, 18:28
That is already a problem ??????

y=(number-18432)

LCDOUT DEC3 y/10
LCDOUT ","
LCDOUT DEC1 y

savnik
- 28th August 2007, 19:18
That is already a problem ??????

y=(number-18432)

LCDOUT DEC3 y/10
LCDOUT ","
LCDOUT DEC1 y
Thank you.
Final it is so simple.