truncateDecimals: Truncate float to defined number of decimal values

View source: R/mbqnThreshold.R

truncateDecimalsR Documentation

Truncate float to defined number of decimal values

Description

Truncate float to defined number of decimal values

Usage

truncateDecimals(x, digits = 2)

Arguments

x

float

digits

Number of decimal values

Value

Truncated number

Examples

x <- 2.567836
truncateDecimals(x, 3)

arianeschad/mbqn documentation built on March 29, 2022, 6:56 p.m.