Would adding .0 to each of the numbers below turn this into a floating point test? Seems too easy. def cpu_test(): import time start = time.time() x = 0 # 0.0 while x < 9999999: # 9999999.0 x = x + 1 # 1.0 print x print (time.time()-start)/60 cpu_test()