is_odd

Function is_odd 

Source
pub fn is_odd(num: &i32) -> bool
Expand description

Checks if parameter 1 is an odd number

ยงExamples

use r_unit::math;

let a = 7;

assert!(math::is_odd(&a));