Crates.io | is-odd |
lib.rs | is-odd |
version | 1.1.0 |
source | src |
created_at | 2018-05-26 17:53:04.278032 |
updated_at | 2023-11-11 21:08:12.079921 |
description | Returns true if the given number is odd. |
homepage | |
repository | https://github.com/nukeop/is-odd |
max_upload_size | |
id | 67165 |
size | 7,221 |
Returns true if the given number is odd.
Specify the dependencty in Cargo.toml:
[dependencies]
is-odd = "~1.1.0"
Fetch it with cargo:
$ cargo build
extern crate is_odd;
use is_odd::IsOdd;
let _i : i32 = 1;
println!("{}", _i.is_odd()); // prints true
Currently, the library doesn't support floating point numbers.
Copyright © 2018, nukeop. Released under the MIT License.