PowerCenter
- PowerCenter 10.5.6
- All Products
TO_DECIMAL(value[,scale] )
Argument
| Required/
Optional
| Description
|
---|---|---|
value
| Required
| Must be a string or numeric datatype. Passes the values you want to convert to decimal values. 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.
If you pass a decimal to the TO_DECIMAL function to cast the decimal to a decimal with a different scale, the scale argument is a maximum and cannot extend scale. For example, if the scale argument is 5 and the scale of the input value is 6, the fractional digits are truncated. If the scale of the input value is 4, the fractional digits remain the same.
|
TO_DECIMAL( IN_TAX, 3 )
|
|
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|