decodeToFloatOrNull

inline fun Asn1Primitive.decodeToFloatOrNull(assertTag: Asn1Element.Tag = Asn1Element.Tag.REAL, lenient: Boolean = false): Float?(source)

Exception-free version of decodeToFloat. Beware of probable loss of precision!

Parameters

lenient

if true the function will not throw an exception if the input is not normalised. A normalised REAL means:

  • mantissa and exponent can be used as-is with base 2

  • mantissa and exponent are minimally encoded