0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-02 00:38:24 +02:00

ircd::fmt: Add floating point notation format policy.

This commit is contained in:
Jason Volk 2022-04-02 13:31:29 -07:00
parent 400b306833
commit b62c4205a3

View file

@ -1119,6 +1119,13 @@ const
{ {
return _precision_ > 0; return _precision_ > 0;
} }
static int floatfield(const double &)
{
return _precision_ > 0?
fmtflags::fixed:
fmtflags::scientific;
}
}; };
karma::rule<char *, double()> rule karma::rule<char *, double()> rule