A negative value does not consist entirely of digits yet may lack a
decimal point. But a point must not be added after an exponent.
literal->token = lexical_cast<string>(r_constant_value.value<unsigned>())+"u";
else if(r_constant_value.check_type<float>())
{
- literal->token = lexical_cast<string>(r_constant_value.value<float>());
- if(isnumrc(literal->token))
+ literal->token = lexical_cast<string>(r_constant_value.value<float>(), Fmt().precision(8));
+ if(literal->token.find('.')==string::npos && literal->token.find('e')==string::npos)
literal->token += ".0";
}
else