Winch
Member
How do I put a comma in a decimal number and place it on the screen of the LCD?
I read an AD input and would like to insert a comma in the result. (see the code)
I read an AD input and would like to insert a comma in the result. (see the code)
Code:
Adcin 0, an0 'read AN0 and write value to AN0
Lcdcmdout LcdLine1Pos(12)
Lcdout #an0
Lcdcmdout LcdLine1Pos(1)
Lcdout "Volt"
pc1 = an0 * 6 / 10
Lcdcmdout LcdLine1Pos(6)
Lcdout #pc1
WaitMs 250
Lcdcmdout LcdClear
Goto main
End