18-Round | R Documentation |
Rounding functions.
## S4 method for signature 'Rcpp_MPCR'
ceiling(x)
## S4 method for signature 'Rcpp_MPCR'
floor(x)
## S4 method for signature 'Rcpp_MPCR'
trunc(x)
## S4 method for signature 'Rcpp_MPCR'
round(x, digits = 0)
x |
An MPCR object. |
digits |
The number of digits to use in rounding. |
An MPCR object of the same dimensions as the input.
library(MPCR)
input <- runif(20,-1,1)
x <- as.MPCR(input,precision="double")
floor(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.