OS WINXP
C# .Net 4.0
Telerik 2012.2.726.40
I am displaying/editing RadTreeView Nodes in a RadPropertyGrid.
I'm having a problem with the properties being rounded to two decimal places, where I want to support up to four decimal places.
So lets say I have a property named Length:
If I enter 23.4567 into the property grid it rounds it to 23.46.
From this
msdn thread I found that you can wrap it into a string and handle the number of decimals from there.
The problems I have with this are:
- I shouldn't have to use a cheap trick to determine the accuracy of a number.
- When I save the node there are now two lines of XML just for one property, the property that is called in my code, and the wrapper.
What is the correct way to determine the rounding performed on all doubles/floats.