Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 23137

Python Morsels: Arithmetic in Python

$
0
0

An explanation of Python's two number types (integers and floating point numbers), supported arithmetic operations, and an explanation of operator precedence.

Integers

Integers are used for representing whole numbers.

>>> 55>>> 00>>> 999999999999999999999999>>> -10-10

Any number that doesn't have a decimal point in it is an integer.

Floating point numbers

Floating point numbers are used …

Read the full article: https://www.pythonmorsels.com/arithmetic-in-python/


Viewing all articles
Browse latest Browse all 23137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>