Just noticed something that may have added to the vagueness of the question first asked. sum(v / 2) should actually be sum(value / 2) My bad...
Just noticed something that may have added to the vagueness of the question first asked. sum(v / 2) should actually be sum(value / 2) My bad...