Data Integration
- Data Integration
- All Products
util:toDecimal(value,scale)
Argument
| Required/
Optional
| Description
|
---|---|---|
value
| Required
| Must be a string or numeric data type. Passes the value that you want to convert to decimals.
You can enter any valid transformation expression.
|
scale
| Optional
| Must be an integer literal between 0 and 28, inclusive. Specifies the number of digits allowed after the decimal point. If you omit this argument, the function returns a value with the same scale as the input value.
This argument is required in advanced mode.
|
util:toDecimal(IN_TAX, 3)
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
util:toDecimal(Sales, 2)
|
|
---|---|
|
|
|
|
format-number(util:toDecimal('1234', 2), '0.00')