Module num

Source
Expand description

Number related

#[no_std] compatible.

Structs§

RollingMedian
A rolling median type.

Traits§

Float
Floating point numbers
Number
Non-floating point numbers

Functions§

cmp_float
Compare 2 non-NaN floats.
cmp_float_nan
Compare 2 floats, NaN’s will always return Ordering::Equal.
get_mid
Returns the average of two numbers; works with at least all integral and floating point types
median
Gets the median from a sorted slice.