output string formatting
Posted on 1998-09-09
Hi, in C one uses " %4.3lf " to string format a long double floating point value. And " %4.3f " for ordinary floating point values.
What is its equivalent in C++ ? (i.e. for long double string formating)
I tried using setprecision(4), but this messes up the output which returns with a string of # signs and some alphanumeric characters.
setprecision() is meant for normal/ordinary floating point values, but I don't know which is the equivalent parameter for long double floating point values .