humanreadable: Make a number human readable

View source: R/helper-humanreadable.R

humanreadableR Documentation

Make a number human readable

Description

Make a number human readable

Usage

humanreadable(x, base = 10^3, suffix = "", signif_digits = 3)

Arguments

x

Number.

base

typically 1000 or 2^10.

suffix

Will be concatendated to the end.

signif_digits

Number of significant digits.

Value

human readable representation of the number

Examples

humanreadable(1234.567)

fbreitwieser/pavian documentation built on Jan. 5, 2024, 1:43 a.m.