numcmp
This crate is a fork of
num-cmp
but with stable i128 support.
The NumCmp
trait for comparison between differently typed numbers.
use f32;
use Ordering;
use NumCmp;
assert!;
assert!;
assert!;
// 40_000_000 can be exactly represented in f32, 40_000_001 cannot
assert_eq!;
assert_ne!;
assert_eq!;