strfloat
எச்சரிக்கை
செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!
Description
Converts a string to a float.
| Name | Description |
|---|---|
| const string[] | The string to convert into a float. |
Returns
The requested float value.
Examples
new string[4] = "6.9"; // A STRING holding a FLOAT.
new Float:value = strfloat(string);
SetPlayerPos(playerid, 0.0, 0.0, value);
Good to know
குறிப்பு
This function is the same as floatstr.
Related Functions
- floatround: Convert a float to an integer (rounding).
- float: Convert an integer to a float.