Muokkaa

Jaa


Compiler Error C2021

expected exponent value, not 'character'

The character used as the exponent of a floating-point constant is not a valid number. Be sure to use an exponent that is in range.

Examples

The following sample generates C2021:

// C2021.cpp
float test1=1.175494351E;   // C2021

Possible resolution:

// C2021b.cpp
// compile with: /c
float test2=1.175494351E8;