CX_NUMERIC::AdjustPrecision
Description:
This function adjusts the number of decimal places (= precision ) for the transferred number. If, for example, the number "1.2345" is transferred with a precision of "2" , it is adjusted to "4", since the number has four decimal places.
Code example:
Var(num) 1.2345 -> num
2 num Call(SetPrecision) // Precision = 2
...............................
num Call(AdjustPrecision) // Precision = 4
.........................
Var(percent) 65.4321 -> percent
1 num Call(SetPrecision) // Precision = 1
percent Call(AdjustPrecision) // Precision = 4
Stack | Position | Object type | Brief description |
---|---|---|---|
Stack(In) | Top | CX_NUMERIC, CX_PERCENT, CX_VALUE or CX_VALUE_PER | the number |
Stack(Out) | Top | - | - |
Function call: Call(AdjustPrecision)