DATA Step, Macro, Functions and more

Value of a E number

Accepted Solution Solved
Reply
Contributor
Posts: 53
Accepted Solution

Value of a E number

Hi,

 

What is the actual value of 1.534386E-17?


Accepted Solutions
Solution
‎03-24-2016 03:04 PM
Super User
Posts: 17,784

Re: Value of a E number

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


All Replies
Super User
Posts: 17,784

Re: Value of a E number

0

Solution
‎03-24-2016 03:04 PM
Super User
Posts: 17,784

Re: Value of a E number

FYI - this is scientific notation so it translates to 

1.534x10^-17

 

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

Contributor
Posts: 53

Re: Value of a E number

Thanks, that helps! Smiley Happy

Super User
Posts: 6,930

Re: Value of a E number

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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