3 unstable releases
0.2.0 | Dec 23, 2023 |
---|---|
0.1.1 | May 27, 2023 |
0.1.0 | Jul 23, 2022 |
#140 in Math
351,333 downloads per month
Used in 385 crates
(7 directly)
32KB
771 lines
strict-num
A collection of bounded numeric types.
Includes:
FiniteF32
FiniteF64
NonZeroPositiveF32
NonZeroPositiveF64
PositiveF32
PositiveF64
NormalizedF32
NormalizedF64
Unlike f32
/f64
, all float types implement Ord
, PartialOrd
and Hash
,
since it's guaranteed that they all are finite.
License
MIT
lib.rs
:
A collection of bounded numeric types.
Includes:
FiniteF32
FiniteF64
NonZeroPositiveF32
NonZeroPositiveF64
PositiveF32
PositiveF64
NormalizedF32
NormalizedF64
Unlike f32
/f64
, all float types implement Ord
, PartialOrd
and Hash
,
since it's guaranteed that they all are finite.
Dependencies
~180KB