Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

006 floats.md #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 006-Floats.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ Here are two variables that have floating numbers assigned to them:
pi = 3.1415
another_valid_float = 1.0
this_is_valid_too = 7.</code></pre>
##Printing floats
Python allows us to also print floats of an integer number. We do this by adding float at the beginning of the integer value
E.g >>>number=66
>>>Print float(number).
Output >>> 66.0