ChicoState / ChicoState/MyFirstExample

Non-whole number calculations

Đang mở
#459 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
0
Fork
418
Merge trung bình
13 giờ 31 phút
Pull request đã merge (30 ngày)
1

Mô tả

# Problem Description

Some calculations of two whole numbers may result in a decimal, such as division.

# Desired Behavior

When dividing two numbers, produce a result as a decimal number, such as `5/2` should produce `2.5` rather than `2`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Search the project for the calculation or division logic and reproduce the reported 5/2 case. Update the relevant behavior so division of whole numbers preserves a decimal result, then verify that 5/2 produces 2.5 and that existing calculation behavior still works.

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

Đánh giá

Công nghệ
cpp
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
65/100

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.