R/fmt_signif.R
fmt_signif.RdFormat a number with the correct number of significant digits and trailing zeroes.
fmt_signif(x, digits = 3)A string containing the properly-formatted number.
if (FALSE) { # \dontrun{
fmt_signif(c(36.44, 0.0002, 3336.7), digits=3)
} # }