add a decimal

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
foppa
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm
Has thanked: 3 times
Been thanked: 1 time
Contact:

add a decimal

Post by foppa »

is it possible to add a decimal for display of temperature
as 21.6 ° C
Have a lm335 measuring

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: add a decimal

Post by medelec35 »

One way is to use Float and string function
See: http://www.matrixmultimedia.com/mmforum ... 39&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.
Martin

Post Reply