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
Lydia_Pintscher set Security to None.
JanZerebecki updated the task description. (Show Details)Jul 23 2015, 8:24 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 23 2015, 8:24 PM
JanZerebecki removed Wikidata-bugs as the assignee of this task.Jul 23 2015, 8:25 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.
JeroenDeDauw added a subscriber: JeroenDeDauw.

The relevant code for this is in the DataValues Geo library: https://github.com/DataValues/Geo

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