How to get biggest BigDecimal value

前端 未结 5 1050
故里飘歌
故里飘歌 2020-12-09 07:08

How can I get the largest possible value of a BigDecimal variable can hold? (Preferably programmatically, but hardcoding would be ok too)

EDIT
O

5条回答
  •  生来不讨喜
    2020-12-09 08:10

    Given enough RAM, the value is approximately:

    2240*10232

    (It's definitely out by a few orders of magnitude but in relative terms it's a very precise estimate.)

提交回复
热议问题