@tramber wrote:
....
Calculations are still very accurate taking no rule from LUPREC, but up to 16 figures behind zero.
Yes, what is displayed is determined by your Units mode and precision settings, but what AutoCAD knows about it is far more accurate. But a slight correction: It's not 16 decimal places, after the decimal point [except when only a zero precedes it], but rather 16 significant figures. Compare:
Asking for a number less than one [here, 1/10 of pi, because I know it has more decimal places than AutoCAD can find] to 16 decimal places actually gets you 16 decimal places:
Command: (rtos (* pi 0.1) 2 16)
"0.3141592653589793"
But if you ask for pi, you get only 15 decimal places:
Command: (rtos pi 2 16)
"3.141592653589793"
And if you ask for [as an example] a 13-digit number plus decimal [here, pi * 10^12], though you ask to see it to 16 decimal places, you get only 3:
Command: (rtos (* pi 1e12) 2 16)
"3141592653589.794"
because 13 significant figures have already been used up before the decimal point.
In any case, 16 is the limit. You can ask for more, but it gets you no more than asking for 16:
Command: (rtos (* pi 0.1) 2 17)
"0.3141592653589793"
Kent Cooper, AIA