Rounds numbers but keeps trailing zeros
round0.Rd
This function is a shortcut for
formatC(x, digits, format = "f")
.
Examples
round(5.601, 2)
#> [1] 5.6
round0(5.601, 2)
#> [1] "5.60"
round0.Rd
This function is a shortcut for
formatC(x, digits, format = "f")
.
round(5.601, 2)
#> [1] 5.6
round0(5.601, 2)
#> [1] "5.60"