add a decimal

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

Moderators: Benj, Mods

Post Reply
Posts: 45
Joined: Sat Dec 20, 2008 1:55 pm

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

User avatar
Valued Contributor
Valued Contributor
Posts: 8926
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK

Re: add a decimal

Post by medelec35 »

One way is to use Float and string function
See: ... 39&p=17421
by Benj on Fri Feb 26, 2010 4:09 pm
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.

Post Reply