Real numbers are called floats or floating-point numbers : float « Data Type « Python Tutorial






print 1.0 / 2.0 
print 1/2.0 
print 1.0/2 
print 1/2.








2.6.float
2.6.1.Real numbers are called floats or floating-point numbers
2.6.2.Demonstrates handling exceptions when converting string to float