Conversion from a boolean - 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
String Returns the value as a string: true is converted to "true" and false is converted to "false".
Integer Returns 1 if the value is true and 0 if the value is false. This conversion can cause a loss of data.
Decimal Returns 1 if the value is true and 0 if the value is false. This conversion can cause a loss of data.
Double Returns 1.0D if the value is true and 0.0D if the value is false. This conversion can cause a loss of data.
Float Returns 1.0F if the value is true and 0.0F if the value is false. This conversion can cause a loss of data.
Long Returns 1L if the value is true and 0L if the value is false. This conversion can cause a loss of data.