>>622
1/2 = (int)0.5 = 0
1/2+1/2 = 2/2 = 1
1/2+1/3 = (3+2)/6 = (int)0.833 = 0
でいいんでない?