floatstr
warning
This function starts with a lowercase letter.
Description
Converts a string to a float.
Name | Description |
---|---|
string | Ang string na i-convert sa isang float. |
Returns
Ang hiniling na value ng float.
Examples
new before[4] = "6.9"; // ISANG STRING na may hawak na FLOAT.
SetPlayerPos(playerid, 0, 0, floatstr(before));
Related Functions
- floatround: I-convert ang float sa isang integer (rounding).
- float: I-convert ang isang integer sa isang float.