Module cuprate_helper::num
source · Expand description
Number related
#[no_std] compatible.
Traits§
- Floating point numbers
- Non-floating point numbers
Functions§
- Compare 2 non-
NaNfloats. - Compare 2 floats,
NaN’s will always returnOrdering::Equal. - Returns the average of two numbers; works with at least all integral and floating point types
- Gets the median from a sorted slice.