round: Round

roundR Documentation

Round

Description

Rounding functions.

Usage

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

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

## S4 method for signature 'float32'
trunc(x, ...)

## S4 method for signature 'float32'
round(x, digits = 0)

Arguments

x

A float vector/matrix.

...

ignored

digits

The number of digits to use in rounding.

Value

A float vector/matrix of the same dimensions as the input.

Examples

library(float)

x = flrnorm(10)
floor(x)


float documentation built on Feb. 16, 2023, 6:43 p.m.