This function will print exactly the amount of digits requested
as well as signed zeroes when appropriate (e.g, -0.00
).
num_print(x, digits = getOption("jtools-digits", 2), format = "f")
The number(s) to print
Number of digits past the decimal to print
equal to "d"
(for integers),
"f"
, "e"
, "E"
, "g"
, "G"
, "fg"
(for reals). Default is "f"