[Rd] Representation of floating point numbers (PR#1281)

theis@statistik.uni-dortmund.de theis@statistik.uni-dortmund.de
Thu, 24 Jan 2002 11:46:55 +0100 (MET)


Full_Name: Winfried Theis
Version: 1.4.0
OS: Linux
Submission from: (NULL) (129.217.207.135)


Hello!

During an error search I stumbled across the following:
If I do 
> options(digits=22)
and then type in e.g. 0.1 I get:
> 0.1
[1] 0.1000000000000000055511

I hope there is some other way to correct this, than rounding to 12 digits 
or something similar. I tested it on a Sun and under Windows as well and it 
is the same on all systems.

Regards,

Winfried Theis

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._