I would like to “round” a Length and output it as a float in inch but with the max precision that a user can setup (0.000000") and not only the selected one.
For exemple :
If I do this :
0.999998.to_l.to_s.to_l.to_f, I would return
0.999998 in all cases and not
1.0 if the model have an other precision than
Or, the sub question is How SketchUp rounds Lengths ?
Thanks for your help