Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
NSNumber(CPTExtensions) Category Reference

Core Plot extensions to NSNumber. More...

#import <NSNumberExtensions.h>

Public Class Methods

(nonnull instancetype) + numberWithCGFloat:
 Creates and returns an NSNumber object containing a given value, treating it as a CGFloat. More...
 

Public Instance Methods

(CGFloat- cgFloatValue
 Returns the value of the receiver as a CGFloat. More...
 
(nonnull instancetype) - initWithCGFloat:
 Returns an NSNumber object initialized to contain a given value, treated as a CGFloat. More...
 
(nonnull NSDecimalNumber *) - decimalNumber
 Returns the value of the receiver as an NSDecimalNumber. More...
 

Detailed Description

Core Plot extensions to NSNumber.

Method Documentation

◆ cgFloatValue

- (CGFloat) cgFloatValue

Returns the value of the receiver as a CGFloat.

Returns
The value of the receiver as a CGFloat.

◆ decimalNumber

- (nonnull NSDecimalNumber *) decimalNumber

Returns the value of the receiver as an NSDecimalNumber.

Returns
The value of the receiver as an NSDecimalNumber.

◆ initWithCGFloat:

- (nonnull instancetype) initWithCGFloat: (CGFloat number

Returns an NSNumber object initialized to contain a given value, treated as a CGFloat.

Parameters
numberThe value for the new number.
Returns
An NSNumber object containing value, treating it as a CGFloat.

◆ numberWithCGFloat:

+ (nonnull instancetype) numberWithCGFloat: (CGFloat number

Creates and returns an NSNumber object containing a given value, treating it as a CGFloat.

Parameters
numberThe value for the new number.
Returns
An NSNumber object containing value, treating it as a CGFloat.

The documentation for this category was generated from the following files: