s-news
[Top] [All Lists]

strange round / signif behaviour

To: s-news@wubios.wustl.edu
Subject: strange round / signif behaviour
From: Pierre Delfosse <pierre.delfosse@centexbel.be>
Date: Wed, 25 Jul 2001 14:30:53 +0200
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.

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