Compiler Warning (level 2) C4056

overflow in floating point constant arithmetic

The compiler generated an exception while doing floating-point constant arithmetic during compilation.

For example:

double fp_val = 1.0e300 * 1.0e300;

In this example, the result of the multiplication exceeds the maximum allowable value for a double-precision data item.

Sometimes this warning occurs because of optimizations the compiler performs in calculating constant arithmetic. You can safely ignore this warning if it goes away when you turn off optimization (/Od).