.BG
.FN round
.FN signif
.TL
Rounding Functions
.CS
round(x, digits=0)
signif(x, digits=6)
.AG x
numeric object.
Missing values (`NA's) are allowed.
.AG digits
number of decimal digits after the decimal point, in the
case of `round' and total numer of digits, in the case of `signif'.
For rounding, `digits'
can be negative, for rounding large numbers to the
nearest 10, 100, etc.
.RT
object like `x' with data rounded to the specified number of places (`round'),
or with the specified number of significant digits retained (`signif').
.SA
`ceiling', `floor', `trunc'.
.EX
round(mydata, dig=2)    #round to 2 decimals
round(mydata, \-1)       #round to nearest 10
x <- c(123456, .123456, .000123456)
round(x, 3)  # produces
[1] 123456.000      0.123      0.000
signif(x, 3)  # produces
[1] 1.23e+05 1.23e-01 1.23e-04
.KW math
.WR
