R/pk_helper.R
fmt_3sig.Rd
Formats a numeric value to 3 significant figures, removing trailing decimals.
fmt_3sig(x)
(numeric(1)) a single numeric value.
numeric(1)
A character string, "NE" if x is NA, or NA_character_ if x is non-finite.
character
"NE"
x
NA
NA_character_
fmt_3sig(0.001234) #> [1] "0.00123" fmt_3sig(123456) #> [1] "123000"