How to round numeric value and limit number of digits??
Posted: Fri May 12, 2017 10:59 pm
Hey Group,
I am reading a ds18b20 temperature sensor.
The value returned is generally a number with 4 digits after the decimal point.
ie. 86.0625
I would like to round it to just 1 digit after the decimal but I would like to round properly such that 86.0625 will display as 86.1
I would greatly appreciate any guidance on how to do this in espBASIC
thanks in advance
dwight
I am reading a ds18b20 temperature sensor.
The value returned is generally a number with 4 digits after the decimal point.
ie. 86.0625
I would like to round it to just 1 digit after the decimal but I would like to round properly such that 86.0625 will display as 86.1
I would greatly appreciate any guidance on how to do this in espBASIC
thanks in advance
dwight