NOTE: the latest version is 2.3.0
Formerly andreasewering/elm-protoc-utils. Search finds this package by either name.
Utility methods for Float needed in the Protobuf/gRPC context.
Decode a float from a JSON float (1.23, 2.3e4) or a String formatted in the same way ("1.23", "2.3e4"). Also accepts the special strings "Infinity", "-Infinity" and "NaN" resulting in 1/0, -1/0 and 0/0 respectively.
1/0
-1/0
0/0
Decode a float from a JSON float (1.23, 2.3e4) or a String formatted in the same way ("1.23", "2.3e4"). Also accepts the special strings "Infinity", "-Infinity" and "NaN" resulting in
1/0,-1/0and0/0respectively.