Conversion from a long - Cloud - 8.0

Talend Data Shaping Language Reference Guide

Version
Cloud
8.0
Language
English
Product
Talend Cloud
Module
Data Shaping Language
Content
Design and Development
Last publication date
2023-11-23

Target data type Behavior Examples
String Returns the value as a string. 42L is converted to "42".
Boolean Returns false if the value is 0L and true otherwise. This conversion can cause a loss of data. 42L is converted to true.
Integer Converts the long to an integer if possible, returns an exception otherwise. This conversion can cause a loss of data. 42L is converted to 42.
Decimal Returns the long value as a decimal. 42L is converted to 42.
Double Returns the long value as a double. 42L is converted to 42.0D.
Float Converts the long to a float if possible, returns an exception otherwise. This conversion can cause a loss of data. 42L is converted to 42.0F.