I tried this expecting an exception

In [2]: math.tan(math.pi/2)
Out[2]: 16331778728383844.0

so I thought maybe that was a float limit which it probably is as you get weird results from higher values but it seems strange that it tries to run with it.

In [5]: 16331778728383844.0
Out[5]: 16331778728383844.0

In [6]: 16331778728383845.0
Out[6]: 16331778728383844.0

In [7]: 16331778728383846.0
Out[7]: 16331778728383846.0

In [8]: 16331778728383845.0
Out[8]: 16331778728383844.0

In [9]: 16331778728383847.0
Out[9]: 16331778728383848.0

In [10]: 16331778728383848.0
Out[10]: 16331778728383848.0

weird huh?
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to