Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123792

Feature request: ES2021: numeric separators

    XMLWordPrintable

Details

    • All

    Description

      Extend the existing NumericLiteral to allow a separator character between digits.

      1000000000   // Is this a billion? a hundred millions? Ten millions?
      101475938.38 // what scale is this? what power of 10?
      
      1_000_000_000           // Ah, so a billion
      101_475_938.38          // And this is hundreds of millions
      

      https://tc39.es/ecma262/#prod-NumericLiteral

      https://github.com/tc39/proposal-numeric-separator

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123792
          # Subject Branch Project Status CR V

          Activity

            People

              diseraluca Luca Di Sera
              ratijas ivan tkachenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change