Hi all, i am trying to work out how to display to x number of decimal places on the line below
Code:
LCDWRITE p8\p1\p7\p6\p5\p4,p2, [lcdclear,homelcd, "Temperature = ", SCRRAM+40, real convert, " deg C"]
This is what i know. After real convert, if i put \1 or \2 or \3 etc... it will display to that amount of decimal places. If i put a \0 the lcd screen fills up with 0's, if i leave blank obviously i get the full figure.
How do i get it to display no decimal places, 20 instead of 20.0?
Also how do i get the decimal point to stay in one place as the figure changes from 1 to 2 digits, eg: 9 - 10?
Thanks