PEP proposal for round(x,n) enhancement
markus at schabi.de
Tue Sep 18 00:28:13 CEST 2001
Ignacio Vazquez-Abrams <ignacio at openservices.net> schrub:
> On Mon, 17 Sep 2001, Markus Schaber wrote:
>> Tim Peters <tim_one at email.msn.com> 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 :-)
> Naw, just multiply by -1j and take the real component.
I didn't think about the implementors, but about the users :-)
"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