An open API service indexing awesome lists of open source software.

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!

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/)