s-news
[Top] [All Lists]

FW: strange round / signif behaviour

To: s-news@wubios.wustl.edu
Subject: FW: strange round / signif behaviour
From: Pierre Delfosse <pierre.delfosse@centexbel.be>
Date: Wed, 25 Jul 2001 15:43:22 +0200
Sorry having asked this question:

"round" or "signif" produce numeric values which are saved with available
machine precision.  As options(digits=17) was eceptionnally in effect while
testing these functions, the last bit error was visible.

> -----Original Message-----
> From: Pierre Delfosse [SMTP:pierre.delfosse@centexbel.be]
> Sent: Wednesday, July 25, 2001 2:31 PM
> To:   s-news@wubios.wustl.edu
> Subject:      [S] strange round / signif behaviour
> 
> Dear S+ users,
> 
> S+ 2000 under W98 does not always "round" nor "signif" correctly. For
> example,
> 
>       > round(0.81,2)
>       [1] 0.8100000000000001
>       > signif(0.81,2)
>       [1] 0.8100000000000001
> 
> (there are other examples).
> 
> Is this a known bug, possibly computer dependant? How can I avoid this
> behaviour?
> 
> Thank you.
> ---------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>