I have a UI control which is based on a double instead of an decimal.
When it should return a value of 0.001 it returns a value of 0.00100000004749745
How do I convert this to a decimal with the correct value of 0.001?
Note that I am not trying to format it as a string, just get the correct value.