FloatArray get strange values
#2

Use float() to turn an integer in to a float.

pawn Код:
new myInt = 69;
new Float:myFloat = float(myint);
If you need to turn a string in to a float, use floatstr().
To turn a float in to an integer, use floatround() (rounds up).
Reply


Messages In This Thread
[Solved (properbly)]FloatArray get strange values - by Falco-Ger - 26.04.2012, 21:45
Re: FloatArray get strange values - by MP2 - 26.04.2012, 21:47
Re: FloatArray get strange values - by Falco-Ger - 26.04.2012, 21:51
Re: FloatArray get strange values - by Falco-Ger - 27.04.2012, 11:10
Re: FloatArray get strange values - by Falco-Ger - 27.04.2012, 11:29
Re: FloatArray get strange values - by Falco-Ger - 27.04.2012, 17:29
Re: FloatArray get strange values - by Falco-Ger - 27.04.2012, 18:00

Forum Jump:


Users browsing this thread: 8 Guest(s)