Compiler Error C2021
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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.
The following sample generates C2021:
// C2021.cpp float test1=1.175494351E; // C2021
Possible resolution:
// C2021b.cpp // compile with: /c float test2=1.175494351E8;
Show: