Posted By: discrete
What is ./ and .- (sorry for noob question) - 12/05/12 09:24
Such as in
var a = 2./(period+1);
and
2*(1.-a)
Posted By: 3dgs_snake
Re: What is ./ and .- (sorry for noob question) - 12/05/12 09:31
Hi,
It is not ./ or .- but 2.[0] and 1.[0]. It is needed to make the compiler treat your number like a real(float) even if it is an int.
eg : 5 / 2 = 2 and 5. / 2 = 5 / 2. = 2.5
Posted By: discrete
Re: What is ./ and .- (sorry for noob question) - 12/06/12 05:25
ah I see, thanks! was wondering whether it's another kind of shorthand I haven't seen before (like +=)