Module malachite_nz::integer::comparison::partial_eq_primitive_float
source · [−]Expand description
Equality of Integer
s and primitive floats.
partial_eq
use malachite_nz::integer::Integer;
assert!(Integer::from(123u32) == 123.0f32);
assert!(Integer::from(123u32) != -5.0f32);
assert!(123.0f32 == Integer::from(123u32));
assert!(-5.0f32 != Integer::from(123u32));