Incautious use of integer arithmetic to calculate a value for assignment to a floating-point variable can lead to loss of information. Recall, for example, that integer arithmetic always produces integral results, consequently losing information about any possible fractional remainder. Furthermore, there can be loss of precision when converting integers to floating-point values; see guideline FLP10NUM10-J. Beware of precision loss when converting primitive integers to floating-point for additional information. Correct programming of expressions that mix integer and floating point operations or values requires careful consideration.
...