<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">When <span style="color: rgb(0, 134, 179); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16px; white-space: pre; background-color: rgb(250, 250, 250);" class="">enif_make_double</span> gets a nan value passed as the double argument it returns a invalid term, this term can neither be printed (via the fmt*) functions nor can it be deserialized by binary_to_term when serializing it the following binary is generated:<div class=""><br class=""></div><div class=""><div class="">6> io:format("~p~n", [term_to_binary(V)]).</div><div class=""><<131,99,110,97,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0>></div><div class=""><br class=""></div><div class="">V is the double returned by enif_make_double</div><div class=""><br class=""></div><div class=""><br class=""></div><div apple-content-edited="true" class="">
<div class="">---</div><div class="">Cheers,</div><div class="">Heinz Nikolaus Gies</div><div class=""><a href="mailto:heinz@licenser.net" class="">heinz@licenser.net</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">

</div>
<br class=""></div></body></html>