luogu-dev / luogu-dev/cyaron

四舍五入的精度问题

Open
#125 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.7k
Forks
182
PR merge metrics
No merged PRs in 30d

Description

C++的浮点数精度是四舍五入的,python中round是银行家舍入,对于5时的处理策略是不一样的,能否处理一下呢

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where CYaRon performs rounding or converts floating-point values, then inspect any related tests. Compare Python's round behavior with the intended C++-style handling of values ending in 5; done means the project consistently applies the agreed behavior and the difference is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.