Skip to content
Back to formatted view

Raw Message

Message-ID: <4E8F6E6E.9050604@witthoft.com>
Date: 2011-10-07T21:26:06Z
From: Carl Witthoft
Subject: round() and negative digits

Just wondering here -- I tested and found to my delight that

%  round(325.4,-2)
[1] 300

gave me exactly what I would have expected (and wanted).  Since it's not 
explicitly mentioned in the documentation that negative 'digits' is 
allowed, I just wanted to ask whether this behavior is intentional or a 
happy turn of events.  I'm always paranoid that something not explicitly 
documented might disappear in future revisons.

thanks
Carl

-- 
-----
Sent from my Cray XK6