Reference Chunks

Programming and data notes

Get Decimal Results in Python Division

Included file ‘JB/setup’ not found in _includes directory

Use float() to get decimal answers to division fuctions in python

some_data_value = 100
1 / float(some_data_value) #returns 0.01
1 / 100.0 #also returns 0.01
float(1/100) #returns 0.0, which is a float, but might not be what you wanted