Class DFixedPoint

Inherits from:
Object
Conforms to:
DComparable, DSimpleArithmetic, DTextable
Declared in:
DFixedPoint.h

Class Hierarchy

    Object
      |
      +---DFixedPoint

Class Description

The fixed point class implements a 'floating point number' in a long with a fixed point. The format is ..2^3+2^2+2^1+2^0+2^(-1)+2^(-2)+2^(-3)... For example if the point is set to 3 bits, the binary number 11011 equals to 3.375.

Last modified:
31-Oct-2007 (DFixedPoint.h)

Instance Variables

private long _value
the value of the fixed point
private unsigned _point
the number of bits for the point

Method Index


generated 05-Nov-2007 by ObjcDoc 3.0.0