NSNumber(Extensions) Category Reference

Declared in NSNumber+Extensions.h

Overview

NSNumber extensions.

– isCloserTo:than:

Determines if this NSNumber is closer to the first NSNumber than the second.

- (BOOL)isCloserTo:(double)closeTo than:(double)farFrom

Parameters

closeTo

The first NSNumber.

farFrom

The second NSNumber.

Return Value

true if the first NSNumber is closer to the second NSNumber.

Declared In

NSNumber+Extensions.h