On 15/07/2013 at 15:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R14
Platform: Windows ;
Language(s) : C++ ;
---------
I am serializing an object (storing its parameters as a string and reading them back again from the string).
For degree values, I do not get the precision I want.
20° becomes 0.349 which then becomes 19.996 °
30° becomes 0.524 which then becomes 30.023 °
45° becomes 0.785 which then becomes 44.977 °
etc.
This will probably have no practical meaning, but it somehow looks "ugly" when you want a precise common value.
I use RealToString() forwards and ToReal() to get the value back again.
Is there a way to get more precision?