mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 22:55:12 +00:00
print cld's
This commit is contained in:
@@ -279,6 +279,8 @@ struct indenter_finish : indenter {
|
|||||||
|
|
||||||
#endif
|
#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)) {
|
EX string fts_fixed(ld x, int prec IS(6)) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss.precision(prec);
|
ss.precision(prec);
|
||||||
|
|||||||
Reference in New Issue
Block a user