From pablo.barbera at nyu.edu  Thu Dec  5 22:50:15 2013
From: pablo.barbera at nyu.edu (=?ISO-8859-1?Q?Pablo_Barber=E1?=)
Date: Thu, 5 Dec 2013 16:50:15 -0500
Subject: [Rd] bug in default print method / floating point problem?
Message-ID: <CAGxaO+Bt9DY-akWgzdGoMwFLq+ULVJiwxHnU98=X7buYAa4uNA@mail.gmail.com>

In R 3.0.2, I found this weird behavior:

> 7/0.07
[1]100
> 6/0.06
[1] 100

There's one space missing between the bracket and the 100 in the first
case. I don't know if this is a known bug or not. It might have
something to do with precision of floating point numbers:

> options(digits=22)
> 7/0.07
[1] 99.99999999999998578915

Maybe R doesn't add the extra space when it rounds the number for
display? This is probably an irrelevant issue, but I thought I would
report it just in case.

Pablo Barbera



[Rd] bug in default print method / floating point problem?
=?ISO-8859-1?Q?Pablo_Barber=E1?=