rnd_dbl: Round number

Description Usage Arguments Value Examples

View source: R/misc-utils.R

Description

Rounds a number to a specified amount of digits and returns the string value.

Usage

1
rnd_dbl(dbl, digits = 3)

Arguments

dbl

number to be rounded.

digits

number of digits the number needs to be rounded to (defaults to 3).

Value

A string value of the number rounded to the specified amount of digits.

Examples

1
rnd_dbl(1.26564,digits = 2)

hgvandenboorn/hgutils documentation built on Sept. 9, 2019, 2:50 a.m.