PEP proposal for round(x,n) enhancement
Markus Schaber
markus at schabi.de
Mon Sep 17 18:28:13 EDT 2001
More information about the Python-list mailing list
Mon Sep 17 18:28:13 EDT 2001
- Previous message (by thread): PEP proposal for round(x,n) enhancement
- Next message (by thread): PEP proposal for round(x,n) enhancement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, 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>. >> >> Ouch. >> >> 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 :-) markus -- "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
- Previous message (by thread): PEP proposal for round(x,n) enhancement
- Next message (by thread): PEP proposal for round(x,n) enhancement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list