Converts the string to number due to the specified settings.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $str | by value | string |
The string to be converted. |
|
| $dec_point | by value | string | "." |
The decimal separator. |
| $thousand_sep | by value | string | "," |
The thousand separator. |
If the string is a vialid number, its numeric value is returned.
It might throw the exception if the string is not a number