Re: [Rd] significant digits (PR#9682)

2008-06-12 Thread Scott . Wilkinson
Thanks Patrick, your function is a neat work-around to include trailing zeroes when specifying significant digits. It worked better with this modification to the "format" arguments: =20 else if (sigdigs<=3Dleft+right) {out<-format(signum,nsmall=3Dsigdigs-left)} Agree would be nice to include thi

[Rd] round(#, digits=x) unreliable for x=2 (PR#9682)

2007-05-14 Thread scott . wilkinson
Full_Name: Scott Wilkinson Version: 2.3.1 OS: WinXP Pro Submission from: (NULL) (140.253.203.4) In the example below round() does not report to the specified number of digits when the last digit to be reported is zero: Compare behaviour for 0.897575 and 0.946251. Ditto for signif(). The number