MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Why?

Perhaps you wanted

SetPrecision [1.000000000000000000000001, 60] -1

which returns..


This takes the binary software-float number that
is closest to  1.000...1  accurate to the equivalent of about 24 decimal 
digits. Then extends it on the right by
appending additional binary zeros to it until it gets to the binary
precision which is the equivalent of about 60 decimal digits.
Then subtracts exactly 1, which happens to be an exact number
in binary float.

WRI claims their arithmetic is intuitive and easy to understand
and does the right thing almost all the time.

On the other hand, you are not the first person to be puzzled by it.


  • Prev by Date: defining a function of functions
  • Next by Date: NotebookDirectory for package (.m) files?
  • Previous by thread: Re: defining a function of functions
  • Next by thread: Re: Why?