Code Monkey home page Code Monkey logo

fnaas's People

Contributors

rafaelespinoza avatar

Stargazers

 avatar

Watchers

 avatar  avatar

fnaas's Issues

Sequence broken after 79th number

The fibonacci sequence seems to be correct, but only up to the 79th number.

    75  1304969544928657
    76  2111485077978050
    77  3416454622906707
    78  5527939700884757
    79  8944394323791464
    80  14472334024676220 # <----- should be 14472334024676221
    81  23416728348467684 # <----- should be 23416728348467685

All number in JS are 64 bit IEEE 754 floating point. And around this point, the numbers are greater than Number.MAX_SAFE_INTEGER. There's also a bigint nowadays, made to go past 2^53. So there's that.

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.