tests/testthat/_snaps/number.md

the displayed number of digits after the decimal is fixed to user input

Code
  number(1.1, 2)
Output
  [1] 1.10

it can be displayed in scientific notation

Code
  number(1100, scientific = TRUE)
Output
  [1] 1.1e+03

leading zeroes can be trimmed

Code
  number(0.05, leading_zero = FALSE)
Output
  [1] .050


Try the supernova package in your browser

Any scripts or data that you put into this service are public.

supernova documentation built on July 25, 2021, 9:07 a.m.