powered by
Format numbers in scientific notation
format_scientific(x, digits = 1, type = "md")
A character string of a number in scientific notation formatted in Markdown or LaTeX.
Number.
Number of digits after the decimal.
Type of formatting ("md" = markdown, "latex" = LaTeX).
format_scientific(1111) # Control number of digits after decimal with digits format_scientific(1111, digits = 3)
Run the code above in your browser using DataLab