do floatmul/div really needed?
#2

No, you can use the standard operators. The standard operators are overloaded to call these respective functions. Using the functions might be marginally faster, but they don't improve readability.

In float.inc:
pawn Код:
stock Float:operator*(Float:oper1, oper2)
    return floatmul(oper1, float(oper2));       /* "*" is commutative */
Reply


Messages In This Thread
do floatmul/div really needed? - by newbienoob - 21.01.2014, 09:54
Re: do floatmul/div really needed? - by Vince - 21.01.2014, 09:58
Re: do floatmul/div really needed? - by newbienoob - 21.01.2014, 10:11
AW: do floatmul/div really needed? - by BigETI - 21.01.2014, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)