REAL

The ASN.1 REAL type is mapped to the Go Real type defined within the ASN.1 run-time (asn1rt.Real). This in turn is mapped to is mapped to the Go built-in float64 type.

If the REAL type is constrained to base 10 values, it is mapped to the Go RealBase10 type defined within the ASN.1 run-time (asn1rt.RealBase10). This in turn is mapped to is mapped to the Go built-in string type.

Example

ASN.1:

   MyReal ::= REAL
   MyReal10 ::= REAL(0 | WITH COMPONENTS { ..., base (10) })

Generated Go code:

   type MyReal asn1rt.Real
   type MyReal10 asn1rt.RealBase10