associated github issue: #62082
for example:
#include <chrono> #include <format> #include <iostream> int main() { std::cout << std::format("{0:%M:%S} {0}\n", std::chrono::duration<int, std::ratio<101, 103>>{40}); std::cout << std::format("{0:%M:%S} {0}\n", std::chrono::duration<int, std::ratio<1, 1024>>{1511}); }
current output:
00:39.000023 40[101/103]s 00:01.0000000487 1511[1/1024]s
fixed:
00:39.223300 40[101/103]s 00:01.4755850000 1511[1/1024]s