Advertisement
rfmonk

math_overflow.py

Jan 23rd, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. x = 10.0 ** 200
  2.  
  3. print 'x     =', x
  4. print 'x * x =', x * x
  5. try:
  6.     print 'x ** 2 =', x ** 2
  7. except OverflowError, err:
  8.     print err
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement