Comments (2)
I think for int64/f64 we will need to convert them into BCD8 and call decQuadFromBCD. int64 should be exact, f64 will be lossy. Do you want to take a stab at it?
from decimal.
Yep. I will work on this.
I've attached pull request which has work on the i64/u64.
I had to implement the double dabble algorithm - well i copied the impl from wikipedia. I did not find one available here.
Please comment whether this looks good for you. if it does i will work on adding fp support. Do you have some ideas as to how to convert from fp to dec?
from decimal.
Related Issues (20)
- guidance on writing f64, f32 conversion HOT 2
- Error compiling library on Raspbian
- sin() / cos() / tan() methods HOT 4
- Incorrect formatting HOT 2
- quantize() with quantum >1 doesn't work properly
- compilation fails on ppc64le, s390x, aarch64, armv7hl HOT 4
- unsigned d128
- Consider to move the crait in `rust_num`
- sqrt method HOT 1
- remove rustc-serialize HOT 4
- d128::from_str() returns Ok on non valid inputs HOT 1
- UB and usage of deprecated function HOT 10
- `from_str` panic HOT 2
- status of the project HOT 2
- Two d128 values are equal, but their hashes aren't
- d128 to integer value HOT 2
- `exp` causes infinite loop
- how to add this library with my own C program
- const literals? HOT 3
- Provide bindings to `decNumberRescale`
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 decimal.