(no title)
joe24pack | 12 years ago
[joe24pack@staropramen ~]$ python
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def gauss(x):
... return (x+1)*(x/2)
...
>>> gauss(10)
55
>>> gauss(1000000000)
500000000500000000
>>>
Tibbes|12 years ago
You gotta admit, on an article about the difference between integer and floating-point arithmetic, that's pretty ironic!
joe24pack|12 years ago