add warning comment about floating point arithmetic in weight calculation