Package pycocoa :: Module nstypes :: Class NSDecimalNumber
[frames] | no frames]

Class NSDecimalNumber

          object --+    
                   |    
runtime.ObjCInstance --+
                       |
                      NSDecimalNumber

Optimized NSDecimalNumber class.

Instance Methods
 
ns2decimal(self)
Create a Python Decimal from this NSDecimalNumber.
 
objc_classname(self)
Return class name as a string.
 
release(self)
Garbage collect this NSDecimalNumber.

Inherited from runtime.ObjCInstance: __getattr__, __repr__, set_ivar

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(cls, pyobj)
Create a new ObjCInstance or return a previously created one for the given object_ptr which should be an Objective-C id.
Class Variables
  objc_class = <ObjCClass NSDecimalNumber at 140735637589320>
  selector = None

Inherited from runtime.ObjCInstance: ptr

Properties
  value
Return the NSDecimalNumber value as int or float.

Inherited from object: __class__

Method Details

__new__(cls, pyobj)
Static Method

 

Create a new ObjCInstance or return a previously created one for the given object_ptr which should be an Objective-C id.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

objc_classname(self)

 

Return class name as a string.

Overrides: runtime.ObjCInstance.objc_classname

Property Details

value

Return the NSDecimalNumber value as int or float.

Get Method:
value(self) - Return the NSDecimalNumber value as int or float.