is it possible to add a decimal for display of temperature
as 21.6 ° C
Have a lm335 measuring
add a decimal
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: add a decimal
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.
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