SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ArchanaSudhir
Obsidian | Level 7

Hi,

 

What is the actual value of 1.534386E-17?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

FYI - this is scientific notation so it translates to 

1.534x10^-17

 

https://www.mathsisfun.com/numbers/scientific-notation.html

View solution in original post

4 REPLIES 4
Reeza
Super User

FYI - this is scientific notation so it translates to 

1.534x10^-17

 

https://www.mathsisfun.com/numbers/scientific-notation.html

ArchanaSudhir
Obsidian | Level 7

Thanks, that helps! 🙂

Kurt_Bremser
Super User

Although @Reeza's post is rather terse, he is probably spot-on to the problem. Numbers in that range are often encountered when the internal representation of numbers in SAS (8-byte real) causes problems stemming from the decimal-to-binary conversion (ie 0.1 cannot be correctly stored as a binary number).

In such cases, apply the round() function to get rid of inaccuracies happening far to the right of the decimal point.

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1812 views
  • 3 likes
  • 3 in conversation