Expand description

Comparison of Integers and primitive floats.

§partial_cmp

use malachite_base::num::basic::floats::PrimitiveFloat;
use malachite_nz::integer::Integer;

assert!(Integer::from(-123) < -122.5f32);
assert!(Integer::from(123) < f32::INFINITY);
assert!(-122.5f32 > Integer::from(-123));
assert!(f32::INFINITY > Integer::from(123));