We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++的浮点数精度是四舍五入的,python中round是银行家舍入,对于5时的处理策略是不一样的,能否处理一下呢
The text was updated successfully, but these errors were encountered:
哈 这项目里哪里用 round 了
round
Sorry, something went wrong.
你意思是加一个 C++ 风格的 round?我觉得不如手写一个 special judge(或者你最好保证精确答案 $\pm 10^{-6}$ 进行四舍五入或银行家舍入的结果一致),而且 C++ 的 cout 似乎也是银行家舍入。
C++ round 到整数可以是 int(f+0.5)
No branches or pull requests
C++的浮点数精度是四舍五入的,python中round是银行家舍入,对于5时的处理策略是不一样的,能否处理一下呢
The text was updated successfully, but these errors were encountered: