R/rounddown.R

Defines functions rounddown

Documented in rounddown

#' @title rounddown
#' @description Rounds down a number to the specified base.
#' @param x Input number.
#' @param base The base number
#' @author Will Gittens
#' @export
rounddown <- function(x,base){
  base*floor(x/base)
}
WHG1990/CCTools documentation built on June 16, 2024, 1:36 a.m.