Most efficient implementation of a large number class

前端 未结 5 918
情歌与酒
情歌与酒 2020-12-02 00:33

When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed.

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 01:19

    You're asking about arbitrary-precision arithmetic, a subject on which books have been written. If you just want a simple and fairly efficient BigNum library for C#, you might want to check out IntX.

提交回复
热议问题