Comments (2)
I have just published 0.10.0
here: https://bintray.com/soywiz/soywiz/kbignum
The implementation is slow. I have implemented it straightforward in a way that is simple. Optimizations should come later. But this project is not my main priority.
Also I wanted to use native big number libraries (BigInteger from JVM or bignum from JS when available) and that's not done yet.
If you can find a public-domain library or a MIT library, that would work too, I can port it and give the proper credit, if not, I have to figure out things myself to be able to provide a MIT license at least.
https://korlibs.soywiz.com/ktcc/ <-- this might help too to convert C libraries
from kbignum.
@soywiz another library I found that looks interesting for kotlin world is https://github.com/fs523577192/big_number
It's just a port of java implementation to kotlin common code. Didn't test it so maybe it's not working like it should.
But the idea is not so bad. Common BigInteger/BigDecimal everywhere with help of java developers is really useful thing.
from kbignum.
Related Issues (11)
- Dead link HOT 3
- Uncaught Kotlin exception: kotlin.NotImplementedError on BigNum.convertToScale with lower scale
- "-0.0001".bn.toString() Fails: AssertionError: Expected <-0.0001>, actual <0.00-1>.
- BigNum.div with precision is broken HOT 2
- Update to kotlin 1.4 HOT 2
- [BUG] Duble.bn doesn't work properly
- [Feature request] Support ranges HOT 2
- [Bug] Implement hashcode method for bugnum
- `BigNum("") == BigNum("0")` on JavaScript
- BigInt from hex string incorrect on iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kbignum.