Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nukeop/is-odd
Returns true if the given number is odd.
https://github.com/nukeop/is-odd
Last synced: 16 days ago
JSON representation
Returns true if the given number is odd.
- Host: GitHub
- URL: https://github.com/nukeop/is-odd
- Owner: nukeop
- License: mit
- Created: 2018-05-26T17:34:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-11T21:16:19.000Z (about 1 year ago)
- Last Synced: 2024-10-14T08:25:10.061Z (about 1 month ago)
- Language: Rust
- Homepage: https://crates.io/crates/is-odd
- Size: 10.7 KB
- Stars: 27
- Watchers: 4
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-odd
Returns true if the given number is odd.## Install
Specify the dependencty in Cargo.toml:```yaml
[dependencies]
is-odd = "~1.1.0"
```Fetch it with cargo:
```bash
$ cargo build
```## Usage
```rust
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](https://github.com/nukeop).
Released under the [MIT License](LICENSE).