Round a number up to the number place second to the left. This is useful for reports that need rounded minimums and maximums.
round_up(x, format = "normal")
x | A numeric value. |
---|---|
format | A boolean. Takes three different options to round up and stylize:
|
A numeric, or a string if format is not "normal".
if (FALSE) { # Round a number up round_up(123456) # Number with only 2 numeric places: round_up(19, format = "dollar") }