Comments (1)
In early experiments, I noticed that gcc stores the literal decimal 1 as 1
with an exponent of 0
. So either:
- it doesn't bother to normalise (just store whatever representation is easiest in a given context), or
- it normalises the other way (use the smallest possible integer that retains all digits).
This may require further experimentation.
The key requirement, however, should be to ensure that the library correctly handles all valid representations of each number, not just one normalised form.
from decimal.
Related Issues (20)
- Consider removing roundContext
- Change function syntax to be rounding context oriented
- Implement error returns in Context struct
- Edit Readme and update Documentation HOT 1
- Fix rounding issues with subtracting
- Complete debugging to pass following funcitons
- Fix Decimal64 suite to pass following cases: HOT 1
- Use uint128T data type for all arithmetic operations HOT 1
- Add Class function HOT 2
- Add Zero and Subnormal flavours: HOT 1
- Add uint128 div function HOT 1
- Cleanup decimal64const.go
- Reuse math/bits package HOT 1
- Fix div function HOT 1
- Clean up rounding
- Fix Abs on nans
- change int constants to uint64/int64 constants
- database/sql support
- Support width option in format strings.
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.