Learn R Programming

YEAB (version 1.0.6)

ceiling_multiple: Find the nearest multiple

Description

Find the nearest multiple

Usage

ceiling_multiple(x, multiple)

Value

the nearest multiple

Arguments

x

numeric, the value for which we want to finde a multiple

multiple

numeric, the multiple

Examples

Run this code
ceiling_multiple(8, 10) # returns 10
ceiling_multiple(12, 10) # returns 20
ceiling_multiple(21, 11) # returns 22

Run the code above in your browser using DataLab