Conversion from a string
Target data type | Behavior | Examples |
---|---|---|
Boolean | Returns true only if the string is equal to "true", regardless of the case. Otherwise it returns false. This conversion can cause a loss of data. |
|
Integer | Converts the string to an integer if possible, returns an exception otherwise. This conversion can cause a loss of data. |
|
Decimal | Converts the string to a decimal if possible, returns an exception otherwise. This conversion can cause a loss of data. |
|
Double | Converts the string to a double if possible, returns an exception otherwise. This conversion can cause a loss of data. |
|
Float | Converts the string to a float if possible, returns an exception otherwise. This conversion can cause a loss of data. |
|
Long | Converts the string to a long if possible, returns an exception otherwise. This conversion can cause a loss of data. |
|
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 – let us know how we can improve!