Skip to main content

rounded

Function rounded 

Source
pub fn rounded(
    x: &Analytic,
    how: Rounding,
    budget: &mut Budget,
) -> OpResult<Value>
Expand description

floor(x), ceil(x), trunc(x) or round(x): an int that is constant on each part of the draw where x is between two of the rounding’s steps, with that part’s probability. Where x is constant, it rounds as a number does, ties included; elsewhere a step has no probability.