is-odd

Crates.iois-odd
lib.rsis-odd
version1.1.0
sourcesrc
created_at2018-05-26 17:53:04.278032
updated_at2023-11-11 21:08:12.079921
descriptionReturns true if the given number is odd.
homepage
repositoryhttps://github.com/nukeop/is-odd
max_upload_size
id67165
size7,221
(nukeop)

documentation

README

is-odd

Returns true if the given number is odd.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-odd = "~1.1.0"

Fetch it with cargo:

$ cargo build

Usage

extern crate is_odd;
use is_odd::IsOdd;

let _i : i32 = 1;
println!("{}", _i.is_odd()); // prints true

Known tradeoffs

Currently, the library doesn't support floating point numbers.

About

License

Copyright © 2018, nukeop. Released under the MIT License.

Commit count: 16

cargo fmt