anmolitor/elm-protoc-utils/2.2.0

NOTE: the latest version is 2.3.0

Formerly andreasewering/elm-protoc-utils. Search finds this package by either name.

Protobuf.Utils.Float

Utility methods for Float needed in the Protobuf/gRPC context.

stringOrFloatJsonDecoder : Decoder Float

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.