API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPDecimal.j File Reference

Go to the source code of this file.

Functions

function CPDecimalAdd (result, leftOperand, rightOperand, roundingMode, longMode)
 
function CPDecimalCompact (dcm)
 
function CPDecimalCompare (leftOperand, rightOperand)
 
function CPDecimalCopy (dcm)
 
function CPDecimalDivide (result, leftOperand, rightOperand, roundingMode)
 
function CPDecimalIsNotANumber (dcm)
 
function CPDecimalIsOne (dcm)
 
function CPDecimalIsZero (dcm)
 
function CPDecimalMakeNaN ()
 
function CPDecimalMakeOne ()
 
function CPDecimalMakeWithParts (mantissa, exponent)
 
function CPDecimalMakeWithString (string, locale)
 
function CPDecimalMakeZero ()
 
function CPDecimalMultiply (result, leftOperand, rightOperand, roundingMode, powerMode)
 
function CPDecimalMultiplyByPowerOf10 (result, dcm, power, roundingMode)
 
function CPDecimalNormalize (dcm1, dcm2, roundingMode, longMode)
 
function CPDecimalPower (result, dcm, power, roundingMode)
 
function CPDecimalRound (result, dcm, scale, roundingMode)
 
function CPDecimalString (dcm, locale)
 
function CPDecimalSubtract (result, leftOperand, rightOperand, roundingMode)
 

Variables

 CPCalculationDivideByZero = 4
 
 CPCalculationLossOfPrecision = 1
 
 CPCalculationOverflow = 2
 
 CPCalculationUnderflow = 3
 
 CPDecimalMaxDigits = 38
 
 CPDecimalMaxExponent = 127
 
 CPDecimalMinExponent = -128
 
 CPDecimalNoScale
 
 CPDecimalNumberDivideByZeroException = @"CPDecimalNumberDivideByZeroException"
 
 CPDecimalNumberExactnessException = @"CPDecimalNumberExactnessException"
 
 CPDecimalNumberOverflowException = @"CPDecimalNumberOverflowException"
 
 CPDecimalNumberUnderflowException = @"CPDecimalNumberUnderflowException"
 
 CPRoundBankers = 4
 
 CPRoundDown = 2
 
 CPRoundPlain = 1
 
 CPRoundUp = 3
 

Variable Documentation

CPCalculationDivideByZero = 4

Definition at line 66 of file CPDecimal.j.

CPCalculationLossOfPrecision = 1

Definition at line 63 of file CPDecimal.j.

CPCalculationOverflow = 2

Definition at line 64 of file CPDecimal.j.

CPCalculationUnderflow = 3

Definition at line 65 of file CPDecimal.j.

CPDecimalMaxDigits = 38

Definition at line 54 of file CPDecimal.j.

CPDecimalMaxExponent = 127

Definition at line 55 of file CPDecimal.j.

CPDecimalMinExponent = -128

Definition at line 56 of file CPDecimal.j.

CPDecimalNoScale
Initial value:
= 128
CPCalculationNoError = 0

Definition at line 59 of file CPDecimal.j.

CPDecimalNumberDivideByZeroException = @"CPDecimalNumberDivideByZeroException"

Definition at line 79 of file CPDecimal.j.

CPDecimalNumberExactnessException = @"CPDecimalNumberExactnessException"

Definition at line 78 of file CPDecimal.j.

CPDecimalNumberOverflowException = @"CPDecimalNumberOverflowException"

Definition at line 76 of file CPDecimal.j.

CPDecimalNumberUnderflowException = @"CPDecimalNumberUnderflowException"

Definition at line 77 of file CPDecimal.j.

CPRoundBankers = 4

Definition at line 72 of file CPDecimal.j.

CPRoundDown = 2

Definition at line 70 of file CPDecimal.j.

CPRoundPlain = 1

Definition at line 69 of file CPDecimal.j.

CPRoundUp = 3

Definition at line 71 of file CPDecimal.j.