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

Division Operations

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

isOdd:

Determines if the integer is odd.

+ (BOOL)isOdd:(NSUInteger)integer

Parameters

integer

NSUInteger to be checked.

Return Value

If YES, the value is odd.

Declared In

JOEMath.h

isWholeNumber:

Method checks the wholeness of a decimal value.

+ (BOOL)isWholeNumber:(NSDecimalNumber *)decimal

Parameters

decimal

Decimal number to be checked.

Return Value

Returns YES indicating the value is in fact a whole number.

Declared In

JOEMath.h