A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/065227.html below:

[Python-Dev] A Horrible Inconsistency

[Python-Dev] A Horrible InconsistencyGeorg Brandl g.brandl at gmx.net
Fri May 26 18:00:19 CEST 2006
Fredrik Lundh wrote:
> Sean Reifschneider wrote:
> 
>>> - Treat the negative as a reverser, so we get back (3, 2, 1).
>> 
>> Then we could get:
>> 
>>    >>> print -123
>>    321
>> 
>> Yay!
> 
> and while we're at it, let's fix this:
> 
>      >>> 0.66 * (1, 2, 3)
>      (1, 2)
> 
> and maybe even this
> 
>      >>> 0.5 * (1, 2, 3)
>      (1, 1)
> 
> but I guess the latter one might need a pronunciation.

No, no, no! Floating point is so inaccurate! It has to be

 >>> Decimal("0.5") * (1, 2, 3)
(1, Decimal("1"))

Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4