Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<chrono>: Fix hh_mm_ss subsecond formatting for floats #1866

Merged
merged 2 commits into from
Apr 20, 2021

Commits on Apr 20, 2021

  1. <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.
    eldakesh-ms committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    70db391 View commit details
    Browse the repository at this point in the history
  2. Floor subseconds

    eldakesh-ms committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    5db6ebf View commit details
    Browse the repository at this point in the history