Converts the received numeric data to a bigDecimal data type.
1 object.2bigDecimal
<object.2bigDecimal>
<number /> !
</object.2bigDecimal>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enumber | Integer | Values to convert. |
Returns | |
---|---|
Type | Description |
2bigDecimal | Converted data. |
Example
A string with value 1.1 is declared and converted to a bigdecimal. To check the correct type conversion, it is additioned to a decimal value of 3.7 and shows the value of the sum. The converted value is is correctly treaty as a decimal and performs the operation.
Copy
<xsql-script name='object_2_big_Decimal'> <body> <set name='num'> <object.2bigDecimal> <string>1.1</string> </object.2bigDecimal> </set> <println><add><num/><number>3.7</number></add></println> </body> </xsql-script>