>Hi Craig (and Alvin)
>
>>>Is there a command that returns the decimal precision of a variable?
>>>
>>>Example a=1.00 is 2 decimal
>>> a=1 is 0
>>>
>>>TIA
>>
>>Look at SET DECIMALS.
>
>....And to check, try nVar = SET("DECIMALS"). nVar will be the precision.
Quote help:
"SET DECIMALS specifies the minimum number of decimal places used to display the results of division, multiplication, and trigonometric and financial functions.".
It's for display only, if you use ? nVar, or str(nVar). Just try
x=1.000000002
set decimals to 3
?x
set decimals to 8
?x