| Line 38... |
Line 38... |
| 38 |
number of significant digits.
|
38 |
number of significant digits.
|
| 39 |
}
|
39 |
}
|
| 40 |
\arguments{
|
40 |
\arguments{
|
| 41 |
\item{x}{a numeric vector. Or, for \code{round} and \code{signif}, a
|
41 |
\item{x}{a numeric vector. Or, for \code{round} and \code{signif}, a
|
| 42 |
complex vector.}
|
42 |
complex vector.}
|
| 43 |
|
43 |
|
| 44 |
\item{digits}{integer indicating the number of decimal places
|
44 |
\item{digits}{integer indicating the number of decimal places
|
| 45 |
(\code{round}) or significant digits (\code{signif}) to be used.
|
45 |
(\code{round}) or significant digits (\code{signif}) to be used.
|
| 46 |
Negative values are allowed (see \sQuote{Details}).}
|
46 |
Negative values are allowed (see \sQuote{Details}).}
|
| 47 |
|
47 |
|
| 48 |
\item{\dots}{arguments to be passed to methods.}
|
48 |
\item{\dots}{arguments to be passed to methods.}
|
| Line 68... |
Line 68... |
| 68 |
For \code{signif} the recognized values of \code{digits} are
|
68 |
For \code{signif} the recognized values of \code{digits} are
|
| 69 |
\code{1...22}, and non-missing values are rounded to the nearest
|
69 |
\code{1...22}, and non-missing values are rounded to the nearest
|
| 70 |
integer in that range. Complex numbers are rounded to retain the
|
70 |
integer in that range. Complex numbers are rounded to retain the
|
| 71 |
specified number of digits in the larger of the components. Each
|
71 |
specified number of digits in the larger of the components. Each
|
| 72 |
element of the vector is rounded individually, unlike printing.
|
72 |
element of the vector is rounded individually, unlike printing.
|
| 73 |
|
73 |
|
| 74 |
These are all primitive functions.
|
74 |
These are all primitive functions.
|
| 75 |
}
|
75 |
}
|
| 76 |
\section{S4 methods}{
|
76 |
\section{S4 methods}{
|
| 77 |
These are all (internally) S4 generic.
|
77 |
These are all (internally) S4 generic.
|
| 78 |
|
78 |
|
| 79 |
\code{ceiling}, \code{floor} and \code{trunc} are members of the
|
79 |
\code{ceiling}, \code{floor} and \code{trunc} are members of the
|
| 80 |
\code{\link[=S4groupGeneric]{Math}} group generic. As an S4
|
80 |
\code{\link[=S4groupGeneric]{Math}} group generic. As an S4
|
| 81 |
generic, \code{trunc} has only one argument.
|
81 |
generic, \code{trunc} has only one argument.
|
| 82 |
|
82 |
|
| 83 |
\code{round} and \code{signif} are members of the
|
83 |
\code{round} and \code{signif} are members of the
|