Rounding errors

Đang mở
#308 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả 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 issue names no file, so begin by finding where the Kotlin source evaluates division followed by multiplication, and reproduce the two steps (100÷3, then ×3) on the app. Confirm whether the fix belongs in the arithmetic itself or in how the result is rounded for display, since the maintainers have not said which. Done means the sequence shows 100 and the change is covered by a test.

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

Mô tả

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • 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 bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.4.0

Affected Android/Custom ROM version

GrapheneOS 2026062801 (Android 17)

Affected device model

Pixel 8

How did you install the app?

GitHub releases

Steps to reproduce the bug
  1. Type 100÷3 and press equals
  2. Type ×3 and press equals
Expected behavior

The calculation should return 100.

Actual behavior

The calculation returns 99.999999999999999

Screenshots/Screen recordings
ignoreImageMinify
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.