nim-lang / bigints

BigInts for Nim
MIT License
124 stars 32 forks source link

Rename `toSignedInt` to `toInt` & add support for unsigned integers #100

Closed konsumlamm closed 2 years ago

konsumlamm commented 2 years ago

Fixes #99.

Followup to #74. toInt also works with unsigned integers. I also cleaned up the implementation a bit and added a few more tests. I could also change the name to something like toInteger, if that's preferred.

cc @Araq

Araq commented 2 years ago

Fine with me, I will update my code.