floor

Function floor 

Source
pub fn floor<R: Float>(x: R) -> R
Expand description

Primal floor.

The corresponding forward and reverse rules use a zero-gradient policy at every point.

ยงExamples

use chainrules::floor;

assert_eq!(floor(1.9_f64), 1.0);