[erlang-questions] ASN.1 REAL type problem

Mikko Hämäläinen mikkodev@REDACTED
Fri Jan 16 10:15:47 CET 2009


Hi,

I've recently started learing erlang and I'm now testing the ASN.1
support. I ran into a small problem with REAL types and hope that
someone can help me.

I have a C-program that sends a simple ASN.1 der encoded message to
the erlang server. Strings and integers work fine but when the erlang
server receives a REAL type, it decodes it into a tuple like
{2626984072961113,2,-46} (mantissa, base, exponent perhaps?) instead
of normal float type. Are there some further steps that I need to take
to convert this tuple into a float?

Thank you in advance,
Mikko



More information about the erlang-questions mailing list