While using the round() function I noticed that I get two different results depending on whether I don't explicitly choose the number of decimal places to include or choosing the number to be 0.

## round() in Python

I'm currently learning python with pycharm as IDE. While using the round() function I noticed that I get two different results depending on wether I don't explicitly choose the number of decimal places to include or choosing the number to be 0.

## Round a decimal to the first decimal position that is not zero

I want to shorten a number to the first decimal position that is not null. The Decimal places behind should be rounded.

## How to round to nearest even integer?

My last goal is always to round to the nearest even integer.For example, the number 1122.5196 I want as result 1122. I have tried this options:

## javascript – round up number to nearest 100/1000 depending on number

I have a number that can be in the 2 digits, like 67, 24, 82, or in the 3 digits, like 556, 955, 865, or 4 digits and so on... How can I round up the number to the nearest n+1 digits depending on the number?