round5Rappen: spez. Round for Swiss currency "CHF"

View source: R/utilities.R

round5RappenR Documentation

spez. Round for Swiss currency "CHF"

Description

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.

Usage

round5Rappen(x, round_digits = 9)

Arguments

x

numeric vector

round_digits

how many digit need to be considered for rounding

Value

numeric vector

Examples

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))

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.