[erlang-questions] ASN.1 REAL type problem
Bertil Karlsson
bertil.karlsson@REDACTED
Fri Jan 16 14:49:30 CET 2009
Hi,
There are no built in support to convert it to a float.
The asn1-application supports encode/decode of REAL type in base 2 and 10.
Base 10 is always decoded in character string format, according to ISO 6093.
/Bertil
Mikko Hämäläinen wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
More information about the erlang-questions
mailing list