powered by
Format numeric values.
formatF(x, digits = 3)
Formatted character string.
A number or numeric vector.
Number of decimal places of output. Defaults to 3.
3
format, formatN
format
formatN
formatF(pi, 20)
Run the code above in your browser using DataLab