roundR Documentation

Rounding of Numbers

Description

ceiling takes a single numeric argument x and returns a numeric vector containing the smallest integers not less than the corresponding elements of x.

Usage

## S4 method for signature 'fm'
ceiling(x)

## S4 method for signature 'fmV'
ceiling(x)

## S4 method for signature 'fm'
floor(x)

## S4 method for signature 'fmV'
floor(x)

## S4 method for signature 'fm'
round(x)

## S4 method for signature 'fmV'
round(x)

Arguments

x

a numeric vector.

Details

floor takes a single numeric argument x and returns a numeric vector containing the largest integers not greater than the corresponding elements of x.

round rounds the values in its first argument to the specified number of decimal places (default 0).

Examples

mat <- ceiling(fm.runif.matrix(100, 10))
mat <- floor(fm.runif.matrix(100, 10))
mat <- round(fm.runif.matrix(100, 10))