How to display a rounded values of data read from DS18B20 in 12bit mode?

Status
Not open for further replies.

markdem

Member level 3
Joined
May 16, 2006
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,830
Hi All, i am reading a DS18B20 in 12 bit mode, and it is working ok. As i am not too good with maths, I cant work out how i can display a nice round number after the decimal point. In other words i would like it to display .1 to .9 insted of .0625, .1250, .1875... Can any one help me??

thanks, Mark
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…