Calculator icon indicating copy to clipboard operation
Calculator copied to clipboard

Preserve operation order

Open Aga-C opened this issue 1 year ago • 4 comments
trafficstars

Checklist

  • [x] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [x] I have read the FAQ and my problem isn't listed.
  • [x] I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise.
  • [x] This issue contains only one feature request.
  • [x] I have read and understood the contribution guidelines.

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.

Aga-C avatar Jan 02 '24 18:01 Aga-C

Hi! @chLynda and I are Computer Science students at Université Paris 8 (France).

We're part of an Open Source Software course, and contributing to a Git project is a requirement. We've seen issue https://github.com/FossifyOrg/Calculator/issues/7 in the Calculator project and would like to work on it

hermione03 avatar Feb 06 '24 10:02 hermione03

@hermione03 FYI you linked the issue #7 on the calendar project but commented on the #7 of the calculator project.

jonas-w avatar Feb 17 '24 21:02 jonas-w

I just noticed this and was really confused.

Out of interest, what is the status of the issue?

Thanks! Kind regards, Matthias

Mat-DB avatar Apr 08 '25 22:04 Mat-DB

It's on the list but there's no ETA right now.

naveensingh avatar Apr 09 '25 18:04 naveensingh