naomijub / edn-rs

[DEPRECATED]: Crate to parse and emit EDN
https://crates.io/crates/edn-rs
MIT License
81 stars 14 forks source link

Handling numbers with an exponent #96

Closed kyptin closed 2 years ago

kyptin commented 2 years ago

Thanks for the library.

I was using it today and discovered that numbers with an exponent, like this:

5.01122771367421E15

…are valid according to the spec but aren't handled correctly by this library.

Thought y'all might like to know. Cheers.

naomijub commented 2 years ago

Thanks, I will take a look, that should be fairly simple to fix

naomijub commented 2 years ago

Really nice catch, also there was a problem with floats that are less than 0.0. Now they are fixed https://github.com/naomijub/edn-rs/pull/97.

Version 0.17.3