REAL

A Python class is not generated for the ASN.1 REAL type. REAL values are represented using:

Note that the ASN.1 data model divides all mathematical real values, other than zero, into two sets of values, base-10 and base-2 values. The unconstrained REAL type allows values from both sets, but REAL can be constrained to allow values from one set only. Encoding rules typically encode base-10 and base-2 values differently. Decoders will use the Python type corresponding to how the value was encoded (base-2 or base-10). For encoding, if the REAL type was constrained to only base-2 or only base-10 values, use float or decimal.Decimal, respectively.