ceiling_multiple {YEAB} | R Documentation |
Find the nearest multiple
Description
Find the nearest multiple
Usage
ceiling_multiple(x, multiple)
Arguments
x |
numeric, the value for which we want to finde a multiple |
multiple |
numeric, the multiple |
Value
the nearest multiple
Examples
ceiling_multiple(8, 10) # returns 10
ceiling_multiple(12, 10) # returns 20
ceiling_multiple(21, 11) # returns 22
[Package YEAB version 1.0.6 Index]