truncateDecimals: Truncate float to defined number of decimal values

Description Usage Arguments Value Examples

View source: R/mbqnThreshold.R

Description

Truncate float to defined number of decimal values

Usage

1
truncateDecimals(x, digits = 2)

Arguments

x

float

digits

Number of decimal values

Value

Truncated number

Examples

1
2
x <- 2.567836
truncateDecimals(x, 3)

MBQN documentation built on Nov. 8, 2020, 8:13 p.m.