Skip to main content

is_odd

Function is_odd 

Source
pub const fn is_odd(value: u64) -> bool
Expand description

Returns whether value leaves a remainder of one when divided by two.

ยงExamples

use use_arithmetic::is_odd;

assert!(is_odd(7));
assert!(!is_odd(12));