bigdecimal icon indicating copy to clipboard operation
bigdecimal copied to clipboard

Method BigDecimal: precision too large. (ArgumentError)

Open BurdetteLamar opened this issue 3 years ago • 2 comments

Doc for method BigDecimal says:

  • ArgumentError:: If +initial+ is a Float, and the +digits+ is larger than
  •             Float::DIG + 1, this exception is raised.
    

Is this true for other methods that have digits/ndigits?

BurdetteLamar avatar Nov 27 '21 20:11 BurdetteLamar

No.

Do you know why the exception occurs in this condition?

mrkn avatar Nov 28 '21 14:11 mrkn

No.

Do you know why the exception occurs in this condition?

I do not know.

BurdetteLamar avatar Nov 28 '21 21:11 BurdetteLamar