# Conversion from a decimal

| Target data type | Behavior | Examples |
| --- | --- | --- |
| String | Returns the value as a string. | 3.1415 is converted to "3.1415". |
| Boolean | Returns false if the value is 0 and<br>true otherwise. This conversion can cause a loss of data. | 3.1415 is converted to true. |
| Integer | Returns the integer part of the decimal number. This conversion can cause a loss of data. | <ul> <li><span>3.1415</span> is converted to <span>3</span>.</li> <li><span>9.99</span> is converted to <span>9</span>.</li> </ul> |
| Double | Returns the decimal value as a double. This conversion can cause a loss of data.<br><br>Information noteNote: If the decimal is too large to be represented as a double, it is converted to a<br>negative infinity or positive infinity. | 3.1415 is converted to 3.1415D. |
| Float | Returns the decimal value as a float. This conversion can cause a loss of data.<br><br>Information noteNote: If the decimal is too large to be represented as a float, it is converted to a<br>negative infinity or positive infinity. | 3.1415 is converted to 3.1415F. |
| Long | Returns the integer part of the decimal number as a long. This conversion can cause a loss of data. | <ul> <li><span>3.1415</span> is converted to <span>3L</span>.</li> <li><span>9.99</span> is converted to <span>9L</span>.</li> </ul> |