In the script editor, when I type in:
float $test = 0.1+(.2);
// Result: 0.3 //
However, when I type in:
float $test = 0.1+(2/10);
// Result: 0.1 //
See the problem is I'm trying to evenly separate particles using (particleId%10+1)/10 to evenly space them across a UV grid, but I'm getting wacky results. I'm guessing it's because apparently x/10 = 0. Any idea why this is happening or what I'm supposed to be typing so that I can get accurate decimal results when dividing?
EDIT: found that it works if I multiply by .1 instead of dividing by 10, but I'd still like to know why this happens