I’m using the code found in this example [url]http://wiki.tinyclr.com/index.php?title=OneWire_-_TempSensor[/url] to get started with my first project using the DS18B20. I have a working example and the temperatures returned actually match the wall thermometers in my office. Not bad for a first attempt
In many example I’ve seen (of course I can’t find any right now), the temperature precision can be output to 1 or 2 decimal places.For example, the above code currently outputs the temperature as a whole number (18) and I want to show the temperature to one (18.2) or two (18.24) decimal places. How do I do this ?
Thanks!