From b62c4205a320a4c42ca73ec29a4911f094e15821 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 2 Apr 2022 13:31:29 -0700 Subject: [PATCH] ircd::fmt: Add floating point notation format policy. --- ircd/fmt.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ircd/fmt.cc b/ircd/fmt.cc index 9a9339332..425e7a88c 100644 --- a/ircd/fmt.cc +++ b/ircd/fmt.cc @@ -1119,6 +1119,13 @@ const { return _precision_ > 0; } + + static int floatfield(const double &) + { + return _precision_ > 0? + fmtflags::fixed: + fmtflags::scientific; + } }; karma::rule rule