apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.69k stars 147 forks source link

[BigInt tests] βœ…πŸ° Codable #259

Open LiarPrincess opened 1 year ago

LiarPrincess commented 1 year ago

Please read the #242 Using tests from β€œViolet - Python VM written in Swift” before.


🐰 Discussion

Currently Codable uses description which is a String with radix 10.

Following options may be better:

We need to remember that BigInt can get really big. In [BigInt tests] πŸ’€ Init from float 754 we operate on integers that have 3000 digits with 32 radix. With radix 10 they would be much longer.