How to reduce resolution of the float?

With the full blown .NET I can use Math.Round with the second parameter being the number of decimal places I want to truncate but this is not available in .NETMF and simply produces an integer value.

Any ideas on how I can do this? I want to drop down to around 3 to 4 decimal places.

multiply by 1000, round, then divide by 1000? :smiley:


Damn I never thought of something so simply but it works.