API  0.9.10
CPDecimal.j File Reference

Go to the source code of this file.

Typedefs

typedef CPDecimal CPDecimalMaxDigits = 38
 
typedef CPRoundingMode CPRoundPlain = 1
 

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
 
 CPDecimalMaxExponent = 127
 
 CPDecimalMinExponent = -128
 
 CPDecimalNoScale
 
 CPDecimalNumberDivideByZeroException = @"CPDecimalNumberDivideByZeroException"
 
 CPDecimalNumberExactnessException = @"CPDecimalNumberExactnessException"
 
 CPDecimalNumberOverflowException = @"CPDecimalNumberOverflowException"
 
 CPDecimalNumberUnderflowException = @"CPDecimalNumberUnderflowException"
 
 CPRoundBankers = 4
 
 CPRoundDown = 2
 
 CPRoundUp = 3
 

Typedef Documentation

◆ CPDecimalMaxDigits

typedef CPDecimal CPDecimalMaxDigits = 38

Definition at line 56 of file CPDecimal.j.

◆ CPRoundPlain

typedef CPRoundingMode CPRoundPlain = 1

Definition at line 72 of file CPDecimal.j.

Variable Documentation

◆ CPCalculationDivideByZero

CPCalculationDivideByZero = 4

Definition at line 68 of file CPDecimal.j.

◆ CPCalculationLossOfPrecision

CPCalculationLossOfPrecision = 1

Definition at line 65 of file CPDecimal.j.

◆ CPCalculationOverflow

CPCalculationOverflow = 2

Definition at line 66 of file CPDecimal.j.

◆ CPCalculationUnderflow

CPCalculationUnderflow = 3

Definition at line 67 of file CPDecimal.j.

◆ CPDecimalMaxExponent

CPDecimalMaxExponent = 127

Definition at line 57 of file CPDecimal.j.

◆ CPDecimalMinExponent

CPDecimalMinExponent = -128

Definition at line 58 of file CPDecimal.j.

◆ CPDecimalNoScale

CPDecimalNoScale
Initial value:
= 128
CPCalculationNoError = 0

Definition at line 61 of file CPDecimal.j.

◆ CPDecimalNumberDivideByZeroException

CPDecimalNumberDivideByZeroException = @"CPDecimalNumberDivideByZeroException"

Definition at line 82 of file CPDecimal.j.

◆ CPDecimalNumberExactnessException

CPDecimalNumberExactnessException = @"CPDecimalNumberExactnessException"

Definition at line 81 of file CPDecimal.j.

◆ CPDecimalNumberOverflowException

CPDecimalNumberOverflowException = @"CPDecimalNumberOverflowException"

Definition at line 79 of file CPDecimal.j.

◆ CPDecimalNumberUnderflowException

CPDecimalNumberUnderflowException = @"CPDecimalNumberUnderflowException"

Definition at line 80 of file CPDecimal.j.

◆ CPRoundBankers

CPRoundBankers = 4

Definition at line 75 of file CPDecimal.j.

◆ CPRoundDown

CPRoundDown = 2

Definition at line 73 of file CPDecimal.j.

◆ CPRoundUp

CPRoundUp = 3

Definition at line 74 of file CPDecimal.j.