From Karl.Hufthammer at math.uib.no  Wed Jun  4 13:17:52 2008
From: Karl.Hufthammer at math.uib.no (Karl Ove Hufthammer)
Date: Wed, 04 Jun 2008 13:17:52 +0200
Subject: [Rd] significant digits (PR#9682)
References: <20080602234017.CB1FD282C786@mail.pubhealth.ku.dk>
	<48451EBC.1000207@stats.uwo.ca>
	<a696b2f20806030843i5c290c87u1125b280b8a7672e@mail.gmail.com>
	<48459200.20401@stats.uwo.ca>
Message-ID: <g25tl0$bbi$1@ger.gmane.org>

Duncan Murdoch:

> The number 0.12345 is not exactly representable, but (I think) it is
> represented by something slightly closer to 0.1235 than to 0.1234.

I like using formatC for checking such things. On my (Linux) system, I get:

$ formatC(.12345,digits=50)
[1] "0.12345000000000000417443857259058859199285507202148"

> So it looks as though Windows gets it right.

-- 
Karl Ove Hufthammer



[Rd] significant digits (PR#9682)
Karl Ove Hufthammer