Christopher Spears wrote: > How can I find the largest float and complex numbers?
I don't know how to do this in standard Python. Here are some answers that use Numeric and numpy: http://groups.google.com/group/comp.lang.python/msg/fa7a761411ced62b http://www.thescripts.com/forum/post2028282-8.html Here is the numpy solution on my machine: In [1]: from numpy import * In [2]: print finfo(float32) Machine parameters for <type 'numpy.float32'> --------------------------------------------------------------------- precision= 6 resolution= 1.0000000e-06 machep= -23 eps= 1.1920929e-07 negep = -24 epsneg= 5.9604645e-08 minexp= -126 tiny= 1.1754944e-38 maxexp= 128 max= 3.4028235e+38 nexp = 8 min= -max --------------------------------------------------------------------- Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor