Comments (4)
That is the rule. What else do you need?
from dec64.
I wanted to see how comparisons are done (whether there is any influence of the "surrounding" like in IEEE 754, how are denormals/subnormals handled, etc.). But I found them right now farther in the asm source. So I think the first question is answered.
Could you maybe comment on other "sources of approximation" other than using the mantissa & exponent way of calculation (i.e. non-constant distribution of numbers on the scale of representable numbers)?
from dec64.
Any floating point system will fail to represent exactly some rational numbers. DEC64 can exactly represent all of decimal fractions up to 16 or 17 significant digits. Binary floating point can not. Those are the numbers that are most important to humanity, because that is how humans understand numbers.
DEC64 does not have subnormals. No sticky bits. No modes. There is a lot of weirdness and complexity in IEEE 754 which is lacking in DEC64.
Comparisons are straightforward. Equality is an exact comparison.
I still do not understand what you are asking for.
from dec64.
Any floating point system will fail to represent exactly some rational numbers. DEC64 can exactly represent all of decimal fractions up to 16 or 17 significant digits. Binary floating point can not. Those are the numbers that are most important to humanity, because that is how humans understand numbers.
DEC64 does not have subnormals. No sticky bits. No modes. There is a lot of weirdness and complexity in IEEE 754 which is lacking in DEC64.
Comparisons are straightforward. Equality is an exact comparison.
I still do not understand what you are asking for.
Yep, if this is an exhaustive list of (non-)features of DEC64, then it answers my question 😉. Thanks!
from dec64.
Related Issues (15)
- dec64_sin() might never return, and now accurately can one reduce radians? HOT 1
- Could you please include a simple javascript version :) HOT 7
- test_new and testing exact matches. HOT 2
- What about saturation arithmetic? HOT 7
- C implementation? HOT 1
- dec64_math_test is failing HOT 1
- Reference implementation in C? HOT 1
- DEC64 counterpart: DEC64unbiased HOT 6
- How does DEC64 relate to the IEEE "decimal64" format? HOT 2
- sqrt hangs on some inputs HOT 3
- divide produces different results for different representations of the same inputs HOT 1
- argument reduction in sine function can hang HOT 1
- Please add compile instrucitons HOT 1
- test for 0.1 + 0.2 == 0.3
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 dec64.