Option to save / export values in 64 bits
I work in metric, and everything works perfectly until I have to export file to the CAD software which uses higher accuracy.
If I have a line of 42 mm, actual dimension is 42.00007 (because the way illustrator stores values in points, and getting rounded in 32bit).
Problem really shows up if I have to scale things 1000-10000 times
Would be amazing if Illustrator had an option to save / export values in 64bits
The problem still exists, yes.
I am going to recheck this anyways.
Thanks for raising this up.
Andrius Slizys commented
Hm... Very strange, because in my tests and calculations numbers I get after rounding were as points would be stored as 9 digits. That's why I assumed it's stored as 32bit.
I would expect much higher accuracy with the double-precision floating-point.
Yes, it's not that scary, definitely falls under my tolerances that I work with. Just... would be nice if 10mm would be 10.000000 in the end of the day and not 10.000012
I know multiple people who left Illustrator behind because of this issue.
Well... Illustrator nowadays (since 2011) uses double-precision floating-point format to store coordinates (which IS 64 bit!), but it stores them in points anyway... I suppose some rounding still happens when points get converted to millimeters.
I had this problem long before 2011, but today, when I export my metric architecture-related designs into a 3D software, and scale them up to match the true scale, the small error is there, just like you show, but it’s not that scary like it used to be.
Still the problem exists, but it’s not because of the format, but conversion.