print cld's

This commit is contained in:
Zeno Rogue 2020-05-01 17:22:30 +02:00
parent fc1b590655
commit 3c82c4d9e3
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,8 @@ struct indenter_finish : indenter {
#endif
EX void print(hstream& hs, cld x) { print(hs, real(x)); if(kz(imag(x))) print(hs, "+", imag(x), "i"); }
EX string fts_fixed(ld x, int prec IS(6)) {
std::stringstream ss;
ss.precision(prec);