Decimals and other numbers

Marko Rauhamaa marko at
Fri Jan 9 10:31:09 CET 2015

Chris Angelico <rosuav at>:

> I'm not a mathematical expert, so I don't quite 'get' this. How does
> this justify 0**0 being equal to 0.5?

Many operations like this are defined in terms of some very strong
argument of uniqueness. Ultimately, the key point is safety in
mathematical deductions. One minimal requirement would be:

         lim        f(x, y)
   (x, y) -> (0, 0)

must be defined (See <URL:

If you get sloppy, there is a real risk of terrible logical mistakes and
wrong results. I think having 0**0 return a value is as irresponsible as
having 0/0 return a value.

(The very same principle is used to define 0+0 and 0*0 as well.)


More information about the Python-list mailing list