Floatstr
From SA-MP Wiki
[edit]
floatstr
![]() | Note: This function name starts with a lowercase letter. |
Description:
Converts a string to a float.
(const string[])
string | The string to convert into a float. |
Return Values:
The requested float value.
Example Usage:
new before[4] = "6.9"; // A STRING holding a FLOAT. SetPlayerPos(playerid, 0, 0, floatstr(before));
[edit]
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- floatround: Convert a float to an integer (rounding).
- float: Convert an integer to a float.