Git Product home page Git Product logo

Comments (5)

SIVAH-AKASH avatar SIVAH-AKASH commented on May 27, 2024 1

Just a user of Flow Launcher: Sure it is a bug but why would you do such calculations. 30000000000000000000*40000000000000000000

That was just one example. And this unlikely calculation might be an indication of a larger issue (possibly affecting even calculations that are more common, including one I shared above).

Hopefully that clarifies it, but also to answer to your question, I do tend to perform these calculations for various reasons, so I would also welcome support for scientific calculations to Flow Launcher. But that's to be raised in a different place.

from flow.launcher.

Dev123456689 avatar Dev123456689 commented on May 27, 2024 1

@deefrawley Just a user of Flow Launcher: I think Flow Launcher calculator is using 64 bit int and as per google 64 bit int can store numbers from -9,223,372,036,854,775,807 to 9,223,372,036,854,775,807. So any number greater than 9,223,372,036,854,775,807 and smaller than -9,223,372,036,854,775,807 can cause the issue.

from flow.launcher.

SIVAH-AKASH avatar SIVAH-AKASH commented on May 27, 2024

Update: This issue occurs even when directly typing the >19 digit number. Try typing "30000000000000000000" vs "40000000000000000000".

from flow.launcher.

Dev123456689 avatar Dev123456689 commented on May 27, 2024

Just a user of Flow Launcher: Sure it is a bug but why would you do such calculations.
30000000000000000000*40000000000000000000

from flow.launcher.

deefrawley avatar deefrawley commented on May 27, 2024

I'm not a core dev but my guess this is because the calc app is using 32 bit integer types which simply can't store large numbers. So either a larger bit integer data type is used or some sort of warning or error trap to let the user know.

In fact fumbling through the code here on Github, it could be the Math.Round function which seems to cast integers to 32 bit.

from flow.launcher.

Related Issues (20)

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.