powered by
Numeric vector showing pre-specific digits
digits(x, digits, format = "f", ...)
a numeric vector
an integer to indicate the number of digits to show.
format type passed to formatC.
formatC
additional parameters passed to formattable.
formattable
# NOT RUN { digits(pi, 2) digits(123.45678, 3) # }
Run the code above in your browser using DataLab