[openstreetmap/openstreetmap-website] Rework coordinates to avoid scientific formatting of small numbers (#1566)
Tom Hughes
notifications at github.com
Fri Jun 23 19:16:48 UTC 2017
tomhughes commented on this pull request.
> module GeoRecord
+ # Ensure that when coordinates are printed that they are always in decimal degrees,
+ # and not e.g. 4.0e-05
+ # Unfortunately you can't extend Numeric classes directly (e.g. `Coord < Float`).
+ class Coord < DelegateClass(Float)
Yes that's what I meant, and I guess that explains why ;-)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1566#discussion_r123825683
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170623/c900df4a/attachment.html>
More information about the rails-dev
mailing list