I understand that there are limits on the precision of storage types, with 'double' offering the best precision for integers. But what's the best practice when dealing with numbers that go beyond the limits of 'double'?
For example, I wonder if anyone could suggest a way of obtaining greater precision for the following:
* Example generated by -dataex-. For more info, type help dataex
Code:
clear input double number 4923329048 234980323 3249890234 2348902348 2349802 2349803234 end gen double numbersq = number^2 format number %25.0g format numbersq %25.0g
0 Response to very large integers - precision beyond double storage type
Post a Comment