libqalculate
decimal.js
Our great sponsors
libqalculate | decimal.js | |
---|---|---|
55 | 22 | |
1,635 | 6,113 | |
3.4% | - | |
8.7 | 0.0 | |
10 days ago | 8 months ago | |
C++ | JavaScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
libqalculate
-
Students, what features would you like to see on Windows 12?
1) a scientific calculator with history and variables with a UI similar to https://sourceforge.net/projects/alt1-calculator/ that also can do units like https://qalculate.github.io/ 2) a tiny text chat direct message program that is similarly as easily accessible at Atl1 3) a minimalist dock of as many instances you would like similar to https://punklabs.com/rocketdock, and like where WIN opens the start menu, WIN + # should pop the dock
-
New world record with an electric racing car: From 0 to 100 in 0.956 seconds
But unfortunately gravity is the first unit that I find is not supported :(
There's some talk about using g0 here https://github.com/Qalculate/libqalculate/issues/498 but that doesn't work in my version (I'm using an old version, hoping to update my OS this week). You can divide it by earth gravity if you know it by heart, though
> 100 km/h / 0.956 s / 9.8 m/s^2
- Qalculate – The Ultimate Desktop Calculator
- Qalculate – A multi-purpose cross-platform desktop calculator
-
GNU Units
I personally use Qalculate (https://qalculate.github.io/), specifically their CLI version for this purpose. I'm not sure how well it compares to GNU Units, but it works well enough for my needs; and it's fairly simple using English-like syntax.
-
Ask HN: Do you still use a hand held/desktop calculator?
On the terminal, I use `qalc`[1]. It's a nice natural language calculator that does arithmetic, solves quadratic equations/linear systems, does unit conversions and even a bit of calculus. Combine it with a cli graphing tool and you can do pretty cool things.
Anything more complicated I'm probably ok with latency, so I open up wolframalpha and enter it there, again, in natural language.
[1] https://qalculate.github.io/
-
[Conversion] I need an explanation for this question please
Btw, download qalculate.github.io and play around with it a bit. I use it for basically all the physics I do. Complete lifesaver.
-
Calculator for sway
Personally I use http://qalculate.github.io/ since I end up having to do unit conversions often, it's pretty handy for that
-
Here's the minimum time it'll take to overflow the "Total damage" variable on the dummy target
Btw: http://qalculate.github.io/ is nice. I use CLI version to fix my general math incompetence. Even does units nicely, for example, "how long it would take to download 82GB game on 50Mbit connection":
-
A sensible NixOS Xfce desktop configuration
Mate Calculator: Seems a bit basic, when you can do so much more with Qalculate! https://qalculate.github.io/
decimal.js
- Floats Are Weird
-
Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve?
ii) Third-Party Libraries There are various libraries like math.js, decimal.js, big.js that solve the problem. Each library functions according to its documentation. This approach is comparatively better.
-
Front-End Dilemmas: Tackling Precision Problems in JavaScript with Decimal.js
Desperate for a solution, I stumbled upon Decimal.js, a JavaScript library that provides arbitrary-precision decimal arithmetic. I was intrigued, so I decided to give it a try.
-
Rant - Javascript should be able to do simple f**king math by now
I too wish JS had a dedicated Decimal Type, but there is plenty of 3rd party libraries available like decimal.js
-
The Last Breaking Change | JSON Schema Blog
For your particular example though, if we keep in mind that the input data to be validated is JSON-serializable, only a string could possibly accommodate the precision expected of a decimal from among the JSON-serializable JS primitives. You could use one or more regex patterns to describe the allowable permutations. The resultant schema would be cross-platform since it doesn't use custom keywords - nice! You can also use unions if you want to say that integers, NaN, and Infinity are also allowed per the docs there.
-
Javascript precision with significant zeros
i've used Decimal.js to account for floating point issues in JS before. maybe this will help? I realize its not native and is a 3rd party lib - but its intent is to handle floating point issues and precision. That kinds sounds like the tree you're barking up right now. maybe it will help.
-
I'm too afraid to ask
In the example provided, the name of the library is literally Decimal.js: https://mikemcl.github.io/decimal.js/
-
[AskJS] Are there numeric textbox widgets with built-in support for big numbers like decimal.js?
I'm working on a project where users will enter numbers like 9,999,999,999.99999 (up to 15 digits, up to 5 of them decimal) and we are having a problem with Numbers losing precision beyond certain number of digits (a typical issue for IEEE Standard 754 Floating Point Numbers, the 0.1 + 0.2 problem). I've solved this problem in a few projects before with the help of decimal.js or bignumber,js . In those cases, we kept user-input as strings and used a few custom-made numeric textbox widgets to accommodate this. Unfortunately, those widgets were proprietary... Now I need one again, but can't find anything. Do they exist?
-
Show HN: I made a web-based notepad with a built in unit calculator
Looks good! I love the idea of the embedded calculator
I noticed that it doesn't handle remainder/modulo (%) equations:
"10 % 2" results in: "Left hand side of addition cannot be a percentage."
It does look like decimal.js can handle that: https://mikemcl.github.io/decimal.js/#mod
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
-
[AskJS] How do you deal with floats in production apps?
https://github.com/MikeMcl/decimal.js/ great library
What are some alternatives?
calculator - Windows Calculator: A simple yet powerful calculator that ships with Windows
mathjs - An extensive math library for JavaScript and Node.js
kalk - Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
bigint-money - A Money class for high precision calculations using the ESnext bigint type.
pure - Pretty, minimal and fast ZSH prompt
0.30000000000000004 - Floating Point Math Examples
zsh-history-substring-search - 🐠 ZSH port of Fish history search (up arrow)
liveCalc - having fun with arithmetic
zsh-z - Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
Brick\Math - Arbitrary-precision arithmetic library for PHP
ohmyzsh - 🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
eslint-plugin-big-number-rules - Enforce (or automatically fix) finance-safe calculations using BigNumber or similar libraries.