Fix warning on precision lost due to double to float conversion.