Scientific notation for markdown
Arguments
- x
numeric vector
- digits
number of decimal places (of the mantissa, for numbers in scientific notation)
- lb, ub
numbers at or below
lbor at or aboveubare written in scientific notation (e.g., 2.46 × 10^7^); numbers between them are written as usual- align
if
TRUE, the numbers are aligned on the decimal point withalign_chr()
Examples
sci_md(c(.0045,1.44, 24567857.45))
#> [1] "4.50×10^−3^" "1.44" "2.46×10^7^"