warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
floatstr
warning
This function starts with a lowercase letter.
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 = floatstr(string);
SetPlayerPos(playerid, 0.0, 0.0, value);
Related Functions
- floatround: Convert a float to an integer (rounding).
- float: Convert an integer to a float.