Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-12219

Format measures of numbers that are rounded to a unit upper is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.7
    • Fix Version/s: 7.9
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Our current way of formatting short int is broken for numbers that would be rounded to a unit upper than the current one, for exemple 999999 would be rounded to 1000000 but would be displayed 1K instead of 1M.

      We should correctly handle these corner cases, so 999600 should be rounded and displayed as 1M

        Attachments

          Activity

            People

            Assignee:
            gregoire.aubert Gregoire Aubert
            Reporter:
            gregoire.aubert Gregoire Aubert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: