Expand ZScript ** and ^ operators to work with floats
Moderator: GZDoom Developers
Expand ZScript ** and ^ operators to work with floats
So, currently ** and ^ both expect integers on both sides of the operator, would be nice to be able to use these for floats and doubles too.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49056
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Expand ZScript ** and ^ operators to work with floats
^ is a binary XOR which is an integer operation.
** does accept floats.
** does accept floats.
Re: Expand ZScript ** and ^ operators to work with floats
I have no idea how, but I somehow managed to confuse ^ for the power operator, and thought from faulty memory that ** also only accepted ints, my apologies.