Skip to content

Commit

Permalink
Merge pull request #340 from muridaehsr/Issue300
Browse files Browse the repository at this point in the history
Added a line of text in /Python/Round.qmd stating that Python's round
  • Loading branch information
statasaurus authored Oct 21, 2024
2 parents 6d9b73c + 0fa846d commit a4f79d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/Rounding.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Python has a built-in **round()** function that takes two numeric arguments, *nu

The default number of decimal is 0, meaning that the function will return the nearest integer.

The round() function in Python will round to the nearest whole number and 'rounding to the even number' when equidistant, meaning that exactly 12.5 rounds to the integer 12.

```{python}
# For integers
x= 12
Expand Down

0 comments on commit a4f79d6

Please sign in to comment.