class Aws::Cbor::Decoder

def read_big_decimal

See: https://www.rfc-editor.org/rfc/rfc8949.html#name-decimal-fractions-and-bigfl
an exponent e and a mantissa m
that contains exactly two integer numbers:
A decimal fraction or a bigfloat is represented as a tagged array
def read_big_decimal
  unless (s = read_array) == 2
    raise Error, "Expected array of length 2 but length is: #{s}"
  end
  e = read_integer
  m = read_integer
  BigDecimal(m) * (BigDecimal(10)**BigDecimal(e))
end