Reputation: 81
I need to access bigint data for processing. So i am trying to convert it into character and process it. However i noticed that some bigint numbers were not appearing in the output table. I tried doing a sample program listed below, that is replicating the issue.
data m;
x=put (57259186099807233,20.);
run;
proc print data =m;
quit;
Why does this give me output “57259186099807232”?
Thanks in advance. NV
Upvotes: 1
Views: 547
Reputation: 1792
See http://support.sas.com/documentation/...
The largest integer value that can be 'safely' stored in SAS (on windows systems) is 9,007,199,254,740,992 which is smaller than the value in your example.
With bigger values, you will inevitably lose precision; fact which your example illustrates quite well.
Upvotes: 3