Returns true if the given number is odd.
Specify the dependencty in Cargo.toml:
[dependencies]
is-odd = "1.1.1"Or:
$ cargo add is_oddFetch it with cargo:
$ cargo builduse is_odd::IsOdd;
let _i : i32 = 1;
println!("{}", _i.is_odd()); // prints trueCurrently, the library support both integer and floating point numbers.
Copyright © 2018, nukeop. Released under the MIT License.