Skip to content

Commit f7dd31f

Browse files
committed
next should be nearest
1 parent 3a59a6b commit f7dd31f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/key_differences_between_python_2_and_3.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2058,7 +2058,7 @@
20582058
"cell_type": "markdown",
20592059
"metadata": {},
20602060
"source": [
2061-
"Python 3 adopted the now standard way of rounding decimals when it results in a tie (.5) at the last significant digits. Now, in Python 3, decimals are rounded to the next even number. Although it's an inconvenience for code portability, it's supposedly a better way of rounding compared to rounding up as it avoids the bias towards large numbers. For more information, see the excellent Wikipedia articles and paragraphs:\n",
2061+
"Python 3 adopted the now standard way of rounding decimals when it results in a tie (.5) at the last significant digits. Now, in Python 3, decimals are rounded to the nearest even number. Although it's an inconvenience for code portability, it's supposedly a better way of rounding compared to rounding up as it avoids the bias towards large numbers. For more information, see the excellent Wikipedia articles and paragraphs:\n",
20622062
"- [https://en.wikipedia.org/wiki/Rounding#Round_half_to_even](https://en.wikipedia.org/wiki/Rounding#Round_half_to_even)\n",
20632063
"- [https://en.wikipedia.org/wiki/IEEE_floating_point#Roundings_to_nearest](https://en.wikipedia.org/wiki/IEEE_floating_point#Roundings_to_nearest)"
20642064
]
@@ -2268,6 +2268,7 @@
22682268
}
22692269
],
22702270
"metadata": {
2271+
"anaconda-cloud": {},
22712272
"kernelspec": {
22722273
"display_name": "Python 2",
22732274
"language": "python",

0 commit comments

Comments
 (0)