proposal-bigint | Arbitrary precision integers in JavaScript | Math library

 by   tc39 HTML Version: Current License: No License

kandi X-RAY | proposal-bigint Summary

kandi X-RAY | proposal-bigint Summary

proposal-bigint is a HTML library typically used in Utilities, Math applications. proposal-bigint has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Arbitrary precision integers in JavaScript
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              proposal-bigint has a low active ecosystem.
              It has 551 star(s) with 56 fork(s). There are 59 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 145 have been closed. On average issues are closed in 273 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of proposal-bigint is current.

            kandi-Quality Quality

              proposal-bigint has no bugs reported.

            kandi-Security Security

              proposal-bigint has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              proposal-bigint does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              proposal-bigint releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of proposal-bigint
            Get all kandi verified functions for this library.

            proposal-bigint Key Features

            No Key Features are available at this moment for proposal-bigint.

            proposal-bigint Examples and Code Snippets

            No Code Snippets are available at this moment for proposal-bigint.

            Community Discussions

            Trending Discussions on proposal-bigint

            QUESTION

            Native support for 64 bit floating point in Javascript
            Asked 2017-Dec-18 at 13:02

            As the question here states, even the newest Ecmascript 8 has no support for 64bit integers.

            But the stage 3 proposal for bigInt looks promising and I expect it will be added to the Js spec sometime soon.

            However, Even according to the proposal, we have to use a special constructor for declaring big numbers. (Q1) What is the technical reason behind, being unable to represent big numbers in the general way?

            ...

            ANSWER

            Answered 2017-Dec-18 at 13:02

            (Q1) What is the technical reason behind, being unable to represent big numbers in the general way?

            Breaking the web. The fundamentals of JavaScript numbers cannot be changed now, 20-odd years after they were originally defined. There's also the issue of performance: JavaScript's current numbers (IEEE-754 binary double [64-bit] precision) are very fast floating point thanks to being built into CPUs and math coprocessors. The cost of that speed is precision; the cost of arbitrary precision (or a dramatically larger precise range) is performance.

            Someday in the future, perhaps JavaScript will get IEEE-754 64-bit or even 128-bit decimal floating point numbers (see here and here), if those formats (introduced in 2008) diffuse into the ecosystem and get hardware support. But that's speculation on my part. :-)

            (Q2) Why can't Javascript represent all numbers using some other standard which doesn't lose precision?

            See Q1. :-)

            (Q3) What complications would arise if Javascript actually did that?

            See Q1. :-)

            Even according to the proposal, we have to use a special constructor for declaring big numbers.

            If you want 64-bit specifically. If you just want BigInts, the proposal includes a new notation, the n suffix, for that: 2n is a BigInt 2. So with BigInts, your example would be

            Source https://stackoverflow.com/questions/47868521

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install proposal-bigint

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tc39/proposal-bigint.git

          • CLI

            gh repo clone tc39/proposal-bigint

          • sshUrl

            git@github.com:tc39/proposal-bigint.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link