Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
overflow in floating point constant arithmetic
Remarks
Floating-point constant arithmetic generates a result that exceeds the maximum allowable value.
This warning can be caused by compiler optimizations performed during constant arithmetic. You can safely ignore this warning if it goes away when you turn off optimization (/Od).
Example
The following example generates C4056:
// C4056.cpp
// compile with: /W2 /LD
#pragma warning (default : 4056)
float fp_val = 1.0e300 * 1.0e300; // C4056