round5Rappen | R Documentation |
rounds for swiss currency. Between values of 0.075 to 0.1249 will be round to 0.1. From values of 0.025 to 0.0749 will be round to 0.1.
round5Rappen(x, round_digits = 9)
x |
numeric vector |
round_digits |
how many digit need to be considered for rounding |
numeric vector
round5Rappen(c( 0.02499, 0.025, 0.0749, 0.075))
round5Rappen(c(10.02499,10.025,10.0749,10.075))
round5Rappen(c(10.52499,10.525,10.5749,10.575))
round5Rappen(c(10.72499,10.725,10.7749,10.775))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.