Page 1 of 1

add a decimal

Posted: Mon Apr 05, 2010 6:06 pm
by foppa
is it possible to add a decimal for display of temperature
as 21.6 ° C
Have a lm335 measuring

Re: add a decimal

Posted: Mon Apr 05, 2010 8:27 pm
by medelec35
One way is to use Float and string function
See: viewtopic.php?f=29&t=7139&p=17421
by Benj on Fri Feb 26, 2010 4:09 pm
Download:StringLCD.fcf
Credit goes to both Benj and Taurus.
Another way would be to convert number to a string, then use left$ string function then add decimal string, then add right$ string function, depending on what the byte or int value is.