[
https://issues.apache.org/jira/browse/AMBARI-25901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Charming Wu updated AMBARI-25901:
---------------------------------
Labels: python2 python3 round (was: )
> modify Round Function 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
> Reporter: Charming Wu
> Priority: Major
> Labels: python2, python3, round
> 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]