# Conversion from a float

| Target data type | Behavior | Examples |
| --- | --- | --- |
| String | Returns the value as a string. | 3.1415F is converted to "3.1415". |
| Boolean | Returns false if the value is 0.0F and<br>true otherwise. This conversion can cause a loss of data. | 3.1415F is converted to true. |
| Integer | Returns the integer part of the float number. This conversion can cause a loss of data. | <ul> <li><span>3.1415F</span> is converted to <span>3</span>.</li> <li><span>9.99F</span> is converted to <span>9</span>.</li> </ul> |
| Decimal | Returns the float value as a decimal. | 3.1415F is converted to 3.1415. |
| Double | Returns the float value as a double. | 3.1415F is converted to 3.1415D. |
| Long | Returns the integer part of the float number as a long. This conversion can cause a loss of data. | <ul> <li><span>3.1415F</span> is converted to <span>3L</span>.</li> <li><span>9.99F</span> is converted to <span>9L</span>.</li> </ul> |