Commit c8c37673 authored by Chris Cooling's avatar Chris Cooling Committed by Lauren Ko

02-numpy.md: Clarification of 1.0 v 1. (#760)

* Clarification of 1.0 v 1.

The previous explanation implies that Python will always print 1.0 as "1." when there's nothing after the decimal point. However, this is specific to numpy. For example, the statement "print(1.0)" will print "1.0" and not "1.". I also clarified the space saved was on the screen (rather than in memory for example).

* Update 02-numpy.md

* Update 02-numpy.md

* Update 02-numpy.md
parent dd7517cf
......@@ -89,9 +89,7 @@ that output is the data we just loaded.
By default,
only a few rows and columns are shown
(with `...` to omit elements when displaying big arrays).
To save space,
Python displays numbers as `1.` instead of `1.0`
when there's nothing interesting after the decimal point.
Note that, to save space when displaying NumPy arrays, Python does not show us trailing zeros, so `1.0` becomes `1.`.
> ## Importing libraries with shortcuts
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment