https://github.com/buresdv/is-even
The most useful number library - Now in Swift!
https://github.com/buresdv/is-even
macos swift
Last synced: 5 months ago
JSON representation
The most useful number library - Now in Swift!
- Host: GitHub
- URL: https://github.com/buresdv/is-even
- Owner: buresdv
- Created: 2024-08-02T11:44:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T11:55:46.000Z (almost 2 years ago)
- Last Synced: 2025-06-18T03:47:18.242Z (about 1 year ago)
- Topics: macos, swift
- Language: Swift
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Is Even - The essential number library for Swift
This library lets you test if any number is even. Includes 100% test coverage!
## System Requirements
- macOS 10.13 or newer
## Usage
1. Add the library to your Xcode project
2. Use `import IsEven` to import the library
3. Now, you can test any number for evenness by using the `.isEven` method on any number!
## Code Example
```swift
import IsEven
if 42.isEven // Supports integers
{
if Double(69.0).isEven // Also supports floats
{
}
}
```
## License
This library is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)