You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduced a regression where coordinates that exclude their decimal point (i.e. an integer format) are now unable to decode since:
iex(1)> String.to_float("12")
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a textual representation of a float
:erlang.binary_to_float("12")
iex:1: (file)
iex(1)> String.to_float("12.0")
12.0
The text was updated successfully, but these errors were encountered:
This fixes a sort-of-regression introduced in #218 (released as v4.0.0) where string values that contained only integers would previously have been passed on by the JSON parser (leading to values like `%Geo.Point{coordinates: {"12", "24"}}`) but now raise an error. Since we can unambiguously parse such values into valid integers, we should just do so.
Resolves#220
This commit introduced a regression where coordinates that exclude their decimal point (i.e. an integer format) are now unable to decode since:
The text was updated successfully, but these errors were encountered: