-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<chrono>: Fix hh_mm_ss subsecond formatting for floats (#1866)
* <chrono>: Fix hh_mm_ss subsecond formatting for floats Before, the same formatting string was used for floats and integrals. This meant that large floats were formatted using exponent notaion and small floats were not, and it also meant there was an extra period in a time, as the subseconds could be fractions of a subsecond (say .4 nanoseconds). Now if the subseconds are floats, we force fixed formatting to get the right number of leading zeroes and a precision of 0 to round off fractions of subseconds. * Floor subseconds
- Loading branch information
1 parent
d488200
commit cc2651d
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters