fossifyorg / calculator Goto Github PK
View Code? Open in Web Editor NEWA calculator for quick simple calculations with a nice user interface and no ads
Home Page: https://www.fossify.org
License: GNU General Public License v3.0
A calculator for quick simple calculations with a nice user interface and no ads
Home Page: https://www.fossify.org
License: GNU General Public License v3.0
Checklist
Is your feature request related to a problem? Please describe.
Calculator currently does operations in a sequence, what can be a bit misleading, because all system calculators on Android I've seen were preserving operations order.
Describe the solution you'd like
Instead of current way of input, which works like traditional digital calculators, it should rather work like stock Android calculators. It should allow to input the whole equation and then compute it, preserving operation order.
Describe alternatives you've considered
In SMT Tibor wanted this feature to be only in scientific calculator mode (to be done maybe someday). However, I don't think it's a good idea, since stock calculators have this in every mode, not just scientific.
Additional context
Currently implementing it will be fairly easy, because Calculator is built on exp4j library which preserves operation order. However, if we change the number data type (issue #6), it will need to be done differently. But doing it from the scratch shouldn't be very hard, it's just implementing the simple algorithms like Shunting Yard.
Checklist
Describe the bug
App relies on exp4j to perform calculations, which is based on Double
data type. It's a floating-point data type, which causes accuracy loss, especially with very long inputs.
I see two possible solutions:
BigDecimal
instead Double
.Double
type. However, it won't guarantee that user won't run in the same problem during calculations.To Reproduce
Steps to reproduce the behavior:
Result: At some point, instead of the digit I input, 0
is added.
Another case:
9
over 13 times.Result: At some point, the integer part of the number starts incrementing by one with each new decimal digit.
Expected behavior
I should see the number I've typed.
Device info (please complete the following information):
Checklist
[ ] I can reproduce the bug with the latest version.
[ x] I made sure that there are no existing issues - open or closed - to which I could contribute my information to.
Describe the bug
In all repos FossifyX is still linked in the readme and in the issue template too. Would recommend updating it to FossifyOrg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.