Skip to main content
  • New archived content: Talend MDM, Talend Data Catalog 8.0, and Talend 7.3 products reached their end of life in 2024. Their documentation was moved to the Talend Archive page and will no longer receive content updates.
Close announcements banner

Conversion from a double

Target data type Behavior Examples
String Returns the value as a string. 3.1415D is converted to "3.1415".
Boolean Returns false if the value is 0.0D and true otherwise. This conversion can cause a loss of data. 3.1415D is converted to true.
Integer Returns the integer part of the double number. This conversion can cause a loss of data.
  • 3.1415D is converted to 3.
  • 9.99D is converted to 9.
Decimal Returns the double value as a decimal. 3.1415D is converted to 3.1415.
Float Converts the double to a float if possible, returns an exception otherwise. This conversion can cause a loss of data. 3.1415D is converted to 3.1415F.
Long Returns the integer part of the double number as a long. This conversion can cause a loss of data.
  • 3.1415D is converted to 3L.
  • 9.99D is converted to 9L.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!