Turn off ZeroDivisionError?

greg greg at cosc.canterbury.ac.nz
Mon Feb 11 08:26:23 CET 2008


Christian Heimes wrote:

> I'm not talking about CS and IEEE floating point ops. I was referring to
> plain good old math. Python targets both newbies and professionals.

Maybe there should be another division operator for
use by FP professionals?

   /   -->  mathematical real division
   //  -->  mathematical integer division
   /// -->  IEEE floating point division (where supported)

-- 
Greg



More information about the Python-list mailing list