Weird problem with doubles not being added to sum

Printable View