JOEMath Class Reference
Inherits from | NSObject |
Declared in | JOEMath.h |
Overview
A collection of methods ranging from simple to complex mathematical operations that have been aggregated from development over time.
Tasks
Integer Checks
-
+ isWholeNumber:
Method checks the wholeness of a decimal value.
-
+ isEven:
Determines if the integer is even.
-
+ isOdd:
Determines if the integer is odd.
Division Operations
-
+ integer:isDivisibleByDivisorsInSet:
Determines if a given integer is divisible by all the divisors in a passed in set.
Class Methods
integer:isDivisibleByDivisorsInSet:
Determines if a given integer is divisible by all the divisors in a passed in set.
+ (BOOL)integer:(NSInteger)integer isDivisibleByDivisorsInSet:(NSSet *)set
Parameters
- integer
The integer dividend.
- set
A character set composed of integer divisors.
Return Value
If YES, the integer is divisible by all the divisors in the set. If NO, it may be divisble by some, or none at all.
Declared In
JOEMath.h
isEven:
Determines if the integer is even.
+ (BOOL)isEven:(NSUInteger)integer
Parameters
- integer
NSUInteger to be checked.
Return Value
If YES, the value is even.
Declared In
JOEMath.h