Main Site Documentation

Problem for SD CARD PROGRAM LOGGING


#1

Hi:

I am testing this code (http://code.tinyclr.com/project/169/sd-card-program-logging/) for my application.
It works well.
But my problem is that it will Round the number automatically.
For example, if my sensor data is 0.198, it will Round the data to 0.2 then write to SD.
How can i solve it?

Thank you very much.

Lin


#2

In the driver change


  .ToString("F2")

to


  .ToString("F3")


#3

Thank you Eric, its work.