https://bugzilla.wikimedia.org/show_bug.cgi?id=64820

Henning (WMDE) <henning.sna...@wikimedia.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |henning.sna...@wikimedia.de

--- Comment #1 from Henning (WMDE) <henning.sna...@wikimedia.de> ---
Detecting the precision seems to be broken horribly in the formatter which is
likely a problem of rounding since DMS values are converted to floats.
Another example: 10°1'1"N, 10°1'1"W - setting precision manually to 10° will
result in the formatted value 10°1'0.9999999984"N, 10°1'0.9999999984"W.
---
Query string parameters:
action:wbformatvalue
format:json
datavalue:{"value":{"latitude":1.0169444444444,"longitude":-1.0169444444444,"globe":"http://www.wikidata.org/entity/Q2","precision":1},"type":"globecoordinate"}
options:{"precision":10}
datatype:globe-coordinate

Response:
{"result":"1\u00b01'0.9999999998\"N, 1\u00b01'0.9999999998\"W"}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to