If the weights are fractional, their sum might not be exactly the same if the order of the terms varies due to the nature of floating point hardware, but I would expect that difference to be very small unless the weights values are extremely different, i.e., by orders of magnitude. This would depend on exactly what computation you are doing.
Floating point precision would, however, be the last thing I would look to as an explanation for differences.
--