Arbitrary-precision arithmetic Explanation

后端 未结 8 1576
青春惊慌失措
青春惊慌失措 2020-11-22 11:10

I\'m trying to learn C and have come across the inability to work with REALLY big numbers (i.e., 100 digits, 1000 digits, etc.). I am aware that there exist libraries to do

8条回答
  •  长发绾君心
    2020-11-22 11:59

    One of the ultimate references (IMHO) is Knuth's TAOCP Volume II. It explains lots of algorithms for representing numbers and arithmetic operations on these representations.

    @Book{Knuth:taocp:2,
       author    = {Knuth, Donald E.},
       title     = {The Art of Computer Programming},
       volume    = {2: Seminumerical Algorithms, second edition},
       year      = {1981},
       publisher = {\Range{Addison}{Wesley}},
       isbn      = {0-201-03822-6},
    }
    

提交回复
热议问题