. whelp datatype
will explain data storage issues at length (so to speak).
Your variable id is likely to be an integer number but needs to be
stored using double storage type because it contains more digits
than can be accurately stored by the integer storage type.
The max number of integers that double storage type can store is 16.
Next is storage type long which can store 9 digits. Then
storage type float can store up to 7 digits. Storage type int is
only 4 digits.
Perhaps you are really wanting to do something else? If you want
to find out the minimum storage length your variable id can be stored
with try -compress-
. compress id
Dan Blanchette
Applications Analyst Programmer
Carolina Population Center UNC-CH
[email protected]
------------------------------------------------------------------
st: double to integer