PEP proposal for round(x,n) enhancement

Markus Schaber markus at
Mon Sep 17 18:02:42 CEST 2001


Tim Peters <tim_one at> schrub:

> BTW, complex numbers still have no meaning to round(), so you could
> use round(x, 3j) to mean "round to 3 significant digits" <wink>.


This "solutions" needs rather complex programmer brains :-)


"The strength of the Constitution lies entirely in the determination of 
each citizen to defend it. Only if every single citizen feels duty 
bound to do his share in this defense are the constitutional rights 
secure." -- Albert Einstein

More information about the Python-list mailing list