Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Fixed.cpp File Reference


Functions

CPLAT_Begin_Namespace_CPLAT
CP_Fixed 
CP_FixRatio (SInt16 inNum, SInt16 inDenom)
SInt16 CP_FixRound (CP_Fixed inFixed)

Function Documentation

CPLAT_Begin_Namespace_CPLAT CP_Fixed CP_FixRatio SInt16  inNum,
SInt16  inDenom
 

Returns a CP_Fixed number that is the ratio of the passed in numerator and demonator.

Parameters:
inNum The numerator of the fixed number.
inDenom The demonator of the fixed number.
Returns:
CP_Fixed The result of the conversion.

SInt16 CP_FixRound CP_Fixed  inFixed  ) 
 

Returns a rounded number from passed in fixed number.

Parameters:
inNum The numerator of the fixed number.
inDenom The demonator of the fixed number.
Exceptions:
none 
Returns:
SInt16 The rounded number.


Generated on Sat Sep 17 20:01:14 2005 for CPLAT by  doxygen 1.4.0