Decimal Formatting
h_format_dec.Rd
Decimal Formatting
Arguments
- digits
(
integer
) number of digits.- format
(
string
) describing how the numbers should be formatted following thesprintf
syntax.
Examples
fun <- h_format_dec(1, "%f - %f")
fun(c(123, 567.89))
#> [1] "123.0 - 567.9"