Skip to main content

Timeline for answer to How can I format a duration with std::println? by Drew Dormann

Current License: CC BY-SA 4.0

Post Revisions

8 events
when toggle format what by license comment
yesterday history edited Drew Dormann CC BY-SA 4.0
added 95 characters in body
yesterday history edited Drew Dormann CC BY-SA 4.0
added 91 characters in body
yesterday history edited Drew Dormann CC BY-SA 4.0
deleted 4 characters in body
yesterday comment added Drew Dormann @Caleth yes — matching the behavior of C++ internal types, if either operand of a division is floating point, the result will be floating point. You can certainly leverage that to get the behavior that you want.
yesterday vote accept Angle.Bracket
yesterday comment added Caleth Interestingly, there's a difference between how these format floating point durations: godbolt.org/z/nWfq1PG5v
yesterday history edited Drew Dormann CC BY-SA 4.0
added 19 characters in body
yesterday history answered Drew Dormann CC BY-SA 4.0