as-bignum
as-bignum copied to clipboard
Fixed length big numbers for AssemblyScript 🚀
TODO - [ ] use better algorithms - [ ] more tests
Why not to build `u256` on top of `u128`? Implementation will be the same as `u128` on top of `u64`. Implementation can even be templated by subtype.
## Summary Add a CI job based on https://github.com/AssemblyScript/assemblyscript/pull/1519 It runs everyday at 00:00 UTC
What does the safe version refer to here? Is it similar to checked_op in rust? It seems that it is more convenient to introduce an Option, and in this case,...
I'm working on a project that's very interested in this package becoming production ready. Please DM and I'd love to talk about how we can help complete this library's implementation,...
In #56 we implemented `muldiv` operation for `u128` and `safe/u128` but last one still required overflow checking
Currently different types in the library are in various stages of implementation completeness. NEAR uses 128-bit numbers internally, therefore we need following types fully implemented: - [ ] `u128` -...
**TODO** - [ ] Internal tests - [x] u128 - [ ] i128 - [ ] u256 - [ ] i256 - [x] safe u128 - [ ] safe i128...
It would be nice if it is possible to do ```typescript u128Val: u128 = 1; ``` but currently this causes the following error ``` ERROR AS200: Conversion from type 'i32'...