By default, the Java transformation converts ports of type Decimal to double datatypes with a precision of 15. If you want to process a Decimal datatype with a precision greater than 15, enable high precision to process decimal ports with the Java class BigDecimal.
When you enable high precision, you can process Decimal ports with precision less than 28 as BigDecimal. The Java transformation converts decimal data with a precision greater than 28 to the Double datatype. Java transformation expressions process binary, integer, double, and string data. Java transformation expressions cannot process bigint data.
For example, a Java transformation has an input port of type Decimal that receives a value of 40012030304957666903. If you enable high precision, the value of the port is treated as it appears. If you do not enable high precision, the value of the port is 4.00120303049577 x 10^19.
If you enable high precision for a Java transformation, also enable high precision for the session that includes the Java transformation. If high precision is enabled in the Java Transformation and it is not enabled in the session, the session may fail with the following error:
[ERROR]Failed to bind column with index <index number> to datatype <datatype name>.