![[Stable]](figures/lifecycle-stable.svg?package=stratallo&version=2.2.1)
A number \(x\) is rounded to integer \(y\) according to the following
rule:
$$y = \left\lfloor{x}\right\rfloor + I(u < (x - \left\lfloor{x}\right\rfloor)),$$
where function \(I:\{TRUE, FALSE\} \to \{0, 1\}\), is defined as:
$$
I(x) = \begin{cases}
0, & x \text{ is } FALSE \\
1, & x \text{ is } TRUE,
\end{cases}
$$
and \(u\) is number that is generated from Uniform(0, 1)
distribution.