[
https://issues.apache.org/jira/browse/AMBARI-25901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wei-Chiu Chuang resolved AMBARI-25901.
--------------------------------------
Resolution: Won't Fix
> modify Function Round from python2 to python3
> ---------------------------------------------
>
> Key: AMBARI-25901
> URL: https://issues.apache.org/jira/browse/AMBARI-25901
> Project: Ambari
> Issue Type: Sub-task
> Components: ambari-client, ambari-server
> Affects Versions: 2.7.5
> Environment: {*}Ambari:{*}Ambari-2.7.5
> *OS:* OpenEuler-22.03
> *Python:* Python 3.9.9
> Reporter: Charming Wu
> Priority: Major
> Attachments: image-2023-03-21-17-15-24-593.png
>
>
> In pytthon2, round() function work as follows:
> round(2.5) => 3.0
> In python3, round() function work as follows:
> round(2.5) => 2
>
> in python2 it return a rounding number 3.0.
> in python3 it return a Integer 2, which is the closest even number to 2.5.
> this different will cause some problem, to aovid failure, I would like to add
> this function to make round() function work as python2 in python3.
>
> !image-2023-03-21-17-15-24-593.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]