Ericsson / ered

An Erlang client library for Valkey/Redis Cluster
MIT License
11 stars 6 forks source link

Parse floats with exponent part #30

Closed zuiderkwast closed 1 year ago

zuiderkwast commented 1 year ago

Erlang is odd here, since Erlang requires a decimal fraction part (i.e. a dot followed by digits). The number "1e100" needs to be rewritten to "1.0e100" before parsing it using binary_to_float/1.

zuiderkwast commented 1 year ago

Good finding.

I just noticed in the RESP3 spec that it states Exponential format is invalid., isn't that using an exponent?

Yep, I saw that too. I already opened these: