Last modified: 2011-04-03 12:01:09 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 T30405, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28405 - metric conversion glitch: 1.82m becomes 5 ft 12 in, instead of 6 ft
metric conversion glitch: 1.82m becomes 5 ft 12 in, instead of 6 ft
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-03 11:51 UTC by Winston
Modified: 2011-04-03 12:01 UTC (History)
2 users (show)

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


Attachments

Description Winston 2011-04-03 11:51:50 UTC
I'm guessing this is a rounding error somewhere. On the wikipedia page for the shortfin mako shark, the tag "{{convert|1.82|-|3.2|m}}" is rendered as "1.82–3.2 metres (5 ft 12 in–10 ft 6 in)" ("5 ft 12 in" should be "6 ft")
Comment 1 Happy-melon 2011-04-03 11:53:11 UTC
{{convert}} is a template on the english wikipedia, not a feature of the MediaWiki software.  this issue is best addressed on [[Template talk:Convert]].
Comment 2 p858snake 2011-04-03 11:54:34 UTC
That is most likely caused by the php/maths rounding stuff on the server side compared to a template issue :)
Comment 3 Happy-melon 2011-04-03 12:01:09 UTC
No it's not, because {{convert|1.82|m}} renders correctly; one code path is correct, the other is broken somewhere in some template.  This is entirely enwiki's problem; at the worst, they're not consistently using the tools we've made available to deal with php/maths rounding stuff.  Even in the unlikely event that it is a server issue, this bug should only be reopened when they have dug the actual problem out of the 2,400 Convert subtemplates and can show a simple testcase.  "{{#expr: something / horribly - edgecasey }} gives rounding errors" is a valid bug.  "A wiki template doesn't give the results I'd expect" is not.

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


Navigation
Links