mirror of
https://github.com/fmtlib/fmt.git
synced 2026-09-14 06:42:24 +08:00
fmt::format("{:6}", nan) gave "nan " where std::format and printf("%6f")
give " nan". write_nonfinite was the only numeric write path taking
write_padded's align::left default, so a width with no explicit align
left-aligned inf and nan while every finite value right-aligned. That
default only reaches align::none, leaving explicit <, > and ^ and the 0
flag unchanged.
|
||
|---|---|---|
| .. | ||
| fmt | ||