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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l