libm 0.2.16

libm in pure Rust
Documentation
1
2
3
4
5
6
use crate::support::Float;

#[inline]
pub fn fdim<F: Float>(x: F, y: F) -> F {
    if x <= y { F::ZERO } else { x - y }
}