powered by
Format numeric values.
formatF(x, digits = 3, nsmall = digits)
A number or numeric vector.
Number of decimal places of output. Default is 3.
3
Formatted character string.
format, formatN
format
formatN
# NOT RUN { formatF(pi, 20) # }
Run the code above in your browser using DataLab