GithubHelp home page GithubHelp logo

Comments (4)

douglascrockford avatar douglascrockford commented on June 9, 2024

That is the rule. What else do you need?

from dec64.

dumblob avatar dumblob commented on June 9, 2024

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.

douglascrockford avatar douglascrockford commented on June 9, 2024

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.

dumblob avatar dumblob commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.