Type | Name | Description | Notes |
Int | sign | Contains +1 if the value of the decimal is positive, 0 if it is zero, and -1 if it is negative. | read-only |
IliDecimal | abs() | Returns the absolute value of the decimal. | |
IliDecimal | add(IliDecimal dec) | Returns the sum of this decimal with dec . | |
IliDecimal | compareTo(IliDecimal dec) | Returns +1 if the decimal is greater than dec , 0 if they are equal, and -1 if the decimal is less than dec . | |
IliDecimal | multiply(IliDecimal dec) | Returns the product of this decimal with dec . | |
IliDecimal | negate() | Returns the opposite of this decimal. | |
IliDecimal | substract(IliDecimal dec) | Returns the difference of this decimal with dec . | |
Number | toNumber() | If this decimal fits in a Rogue Wave Views Script number, this number is returned. Otherwise, an error is raised. | |
String | toString() | Returns a character string representation of this decimal. | |
IliDecimal | IliDecimal | The str parameter is expected to contain the representation in base 10 of a decimal number using the following syntax:
[-|+]{digit}*[.[{digit}*]]
or
[-|+]{digit}+[.[{digit}*]][{E|e}[-|+]{digit}+]
This function returns an IliDecimal object having a value represented by the str parameter. If the str parameter cannot be parsed into an IliDecimal object, null is returned. | -|+ |