How to understand expression below:
inline string to_string(long double _Val)
{ // convert long double to string
char _Buf[_MAX_EXP_DIG + _MAX_SIG_DIG + 64];
_CSTD sprintf_s(_Buf, sizeof (_Buf), "%Lg", _Val);
return (string(_Buf));
}
Why two data types is used in parameter definition? Is this decried in c++ standard?