Tag: floats

Python Tutorial 3 – Integers and Floats

As you saw in the final section of the previous tutorial on numeric expressions in Python, Fractions, the following two expressions give different answers: [sourcecode language=”Python”] 18.0 / 7.0 # This returns 2.571485714285716 18 / 7 # This returns 2 [/sourcecode] So what’s going on here? Well, this is an example of the two main

Read More »
en_AUEnglish (Australia)
es_ESEspañol ja日本語 en_AUEnglish (Australia)