Last modified: 2014-07-02 09:31:48 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 T58892, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56892 - When rounding quantity margins, never round to zero.
When rounding quantity margins, never round to zero.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
quantityvalue, u=dev c=backend p=0
:
Depends on:
Blocks: 54318
  Show dependency treegraph
 
Reported: 2013-11-11 11:00 UTC by Daniel Kinzler
Modified: 2014-07-02 09:31 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2013-11-11 11:00:04 UTC
When rounding quantity margins (and perhaps also the actual amount of the quantity), we should never round to 0. 0 Margins indicate an exact value. That is a special case - showing "almost zero" as 0 (or hiding the mergin) would be misleading.

E.g.:

When rounding 2+/-0.016 to 1 digit after the decimal point (exp -1), 
we currently get 2+/-0, indicating an exact value.
we should however get 2+/-0.02, ignoring the indicated rounding level and instead
rounding to the most significant non-zero digit.

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


Navigation
Links