square root on answer

Đang mở
#267 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

The payload names no source files or tests, so start from CONTRIBUTING.md and find where the calculator parses the sqrt button against the expression in progress. Reproduce it by typing a number, pressing sqrt, and checking that it multiplies the following value instead of applying to the current one. Done means sqrt acts as a unary operator on the active value, with the second behaviour in the issue used only if the first needs a major rework.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

feature request needs triage
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

Ngôn ngữ chính
Kotlin
Star
450
Fork
57
Merge trung bình
14 giờ 59 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FossifyOrg/Calculator

Tất cả issue của FossifyOrg/Calculator

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.