BigInteger or not BigInteger?

前端 未结 3 1488
北恋
北恋 2021-01-17 13:31

In Java, most of the primitive types are signed (one bit is used to represent the +/-), and therefore when I exceed the limits of the type, I can get unexpected results, lik

3条回答
  •  孤城傲影
    2021-01-17 14:12

    The only way for still having beautiful buisiness logic is using a script language, which you compile to java classes. Internally you can use BigIntegers then.

提交回复
热议问题