https://bugzilla.wikimedia.org/show_bug.cgi?id=69836

            Bug ID: 69836
           Summary: mediawiki.language.numbers.js truncates numbers
                    instead of rounding
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Keywords: i18n
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: listenle...@gmail.com
                CC: krinklem...@gmail.com, matma....@gmail.com,
                    tpars...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

To reproduce visit a French wiki, open the Javascript console and execute
 mw.loader.load('mediawiki.language.numbers');
Wait until it is loaded, then execute
 mw.language.commafy(1234.567, '#,##0.##');
Expected result (according to
http://www.unicode.org/reports/tr35/tr35-numbers.html#Number_Format_Patterns)
 "1 234,57"
Actual result:
 "1 234,56"

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to