Last modified: 2014-08-21 11:51:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71836, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69836 - mediawiki.language.numbers.js truncates numbers instead of rounding
mediawiki.language.numbers.js truncates numbers instead of rounding
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.24rc
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-21 08:12 UTC by Michael M.
Modified: 2014-08-21 11:51 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2014-08-21 08:12:10 UTC
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"

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links