Page MenuHomePhabricator

[Bug] Rounding errors lead to 60 mins/secs in Geo formatters
Closed, DuplicatePublic

Description

This depends on the precision. The example value 47.7 is correctly formatted as 47°42' most of the time but 47°41'60" in rare cases.

Example:
https://www.wikidata.org/w/api.php?action=wbformatvalue&datavalue={"value":{"latitude":47.7,"longitude":15.45,"precision":0.00000277778},"type":"globecoordinate"}

This was reported in bug T66820 and split as a separate issue.

Details

Reference
bz73613

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:54 AM
bzimport set Reference to bz73613.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).Dec 1 2014, 2:29 PM
JanZerebecki lowered the priority of this task from High to Medium.
JanZerebecki moved this task from incoming to ready to go on the Wikidata board.
Jonas renamed this task from Rounding errors lead to 60 mins/secs in Geo formatters to [Bug] Rounding errors lead to 60 mins/secs in Geo formatters.Aug 13 2015, 4:07 PM