1 | /// Positive difference (f64) |
---|---|
2 | /// |
3 | /// Determines the positive difference between arguments, returning: |
4 | /// * x - y if x > y, or |
5 | /// * +0 if x <= y, or |
6 | /// * NAN if either argument is NAN. |
7 | /// |
8 | /// A range error may occur. |
9 | #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
10 | pub fn fdim(x: f64, y: f64) -> f64 { |
11 | super::generic::fdim(x, y) |
12 | } |
13 |