Reputation: 87
Is there a way to convert large numerical value to *10 to the power format in sas?
Eg: 88888888383383838383 to 8.8*10^6
Thanks in advance.
Upvotes: 1
Views: 83
Reputation: 1807
You can use the format ew.
where the w the number output characters. Using e8.
will result in 8.9E+19
. But beware that SAS uses floating point to store values internally, with a maximum of 8 bytes. Your example value would be rounded to 88,888,888,383,383,830,528 (no matter how it's formatted).
Upvotes: 1