Why does 4/6 = 0 - page 2

[Deleted]  
Yeah found the problem, I thought I'd set everything to floating points but my TotalWeighting was still an integer. Fixed that problem. Still a little odd, but as people said the compiler was only doing what I asked it to. Thats the joy/pain of computer coding, they only do exactly what you tell them to...