Cast an int as a float so that the Wstot variable is calculated correctly. @watsona @afaulkne
Solving problem Wstot commented in ATR-25310, but not inefficiencies.