Function scl_gui_animation::round

source ·
pub fn round(x: f64) -> f64
Expand description

Fast rounding for x <= 2^23. This is orders of magnitude faster than built-in rounding intrinsic.

Source: https://stackoverflow.com/a/42386149/585725