Module cuprate_helper::num

source ·
Expand description

Number related

#[no_std] compatible.

Structs§

Traits§

  • Floating point numbers
  • Non-floating point numbers

Functions§

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