Sammy
Sammy

Reputation: 87

converting large numerical value to power 10 format

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

Answers (1)

Jeff
Jeff

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

Related Questions