Skip to content

square root on answer #267

Description

@mynameisflorian

Checklist

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

Feature description

Issue: square root is treated as a binary operator (left * sqrt(right)). Square root is a unary operator.

Suggestion: when the user presses the "square root" button the behavior should depend on what is currently in the active input:

  1. Just a <value> → √<value> →<result>
    (Or just value → result)
  2. <value> and <operator> → <value> <operator> √ [waits for value]

If #2 requires a major rework, keep the current behavior of → <value>√[waits for value]

Why do you want this feature?

Practical use of sqrt requires re-entry of result. Also, the current handling of sqrt is not how calculators normally work

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssue is about a new feature or improving existing feature/behavior.needs triageIssue is not yet ready for PR authors to take up

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions