Swift-BigInt
Swift-BigInt copied to clipboard
A lightweight, Arbitrary Precision Arithmetic Library for Swift!
Closes #67 Since this is a break change the new version number should be 3.0.0
``` let w = BInt("0b1310c5a2c30000", radix: 16) ``` ``` (lldb) po w nil ``` The problem seems to be with the hex strings starting with `0b`. `BInt("0b", radix: 16).asString(radix: 10)`...
Even after importing the module, I cant seem to use the BInt functions like GCD LCM Permu and Combination
In my podspec, add this pod, ``` s.dependency 'BigNumber', :git => 'https://github.com/mkrd/Swift-Big-Integer.git' ``` it said that I cant do this way. ``` Podspecs cannot specify the source of dependencies. The...
in some case , using prealloced memory would be a better choice it would be appreciated that if you offer a clean function to reset the limbs to zero ....
https://twitter.com/v_pradeilles/status/1496463121455751168?s=21 Not sure what protocol gives you this but we should support it.
There are a ton of data types we could support. See https://github.com/vmanot/Swallow/blob/9f686ef305b6c83179ace64eaa26a1b3877a640c/Sources/Intermodular/Helpers/Swift/FloatingPointInitiable.swift Currently we only support `Int` and `Double`. It would not be hard to support more types
Mentioned in #19 but duplicated here as not to inflate that issue
Integer literal '8000000000' overflows when stored into 'Int'
Let's face it, the readme could be a lot better. It should be refactored to conform to current conventions, provide a more complete overview of the library and to increase...