DS1820
Posted: Sun Jun 10, 2012 9:25 am
Hi all!
I've been playing this project and it works fine, with very accurate display of the temperature. But when I measure a temperature below zero degrees I get this view: Examble: -5.-18 C and I want it to view -5.18 C
I've tried almost everything but can not get minus line after the comma away. I can see in the calculation it must have something to do with mod. Is there anyone who can help.
Best regard
Jorgen
I've been playing this project and it works fine, with very accurate display of the temperature. But when I measure a temperature below zero degrees I get this view: Examble: -5.-18 C and I want it to view -5.18 C
I've tried almost everything but can not get minus line after the comma away. I can see in the calculation it must have something to do with mod. Is there anyone who can help.

Best regard
Jorgen