[erlang-questions] BSON parsing?

Roger Lipscombe roger@REDACTED
Thu May 15 13:32:58 CEST 2014

Ah, it turns out that the bug is to do with NaN. The binary in
question is <<0,0,0,0,0,0,248,127>>. If I feed the hex representation
(0x7ff80000) to http://www.h-schmidt.net/FloatConverter/IEEE754.html,
it tells me is NaN.

Does Erlang actually have a representation of NaN? And, if so, why is
bson-erlang not using it?


On 15 May 2014 12:17, Roger Lipscombe <roger@REDACTED> wrote:
> We're using https://github.com/mongodb/bson-erlang for parsing BSON,
> and I've found a bug to do with the way it parses floating point
> numbers.
> Is there a more recent/better fork of this project? Or is there an
> alternative BSON parser we should look at?
> Thanks,
> Roger.

More information about the erlang-questions mailing list