[Python-ideas] float('∞')=float('inf')
Andreas Hagmüller
hagmueller at aim-online.com
Fri Jul 12 15:31:17 CEST 2013
int ('100%') = 1?
float('1%') = 0.01?
-1
> 12.07.13 15:36, Zaur Shibzukhov написав(ла):
>> Is it good idea to allow
>> float('∞') to be float('inf') in python?
>
> float('½') == 0.5?
> float('3.(142857)') == 22/7?
> int('Ⅶ') == 7?
> int('✌') == 2?
AIM - Gesellschaft für angewandte Informatik und Mikroelektronik m.b.H
Registered Office: Freiburg
District Court of Freiburg HRB 3520
Managing Directors: Hansjörg Frey, Joachim Schuler
This E-mail and any attachment(s) to it are for the addressee's use only.
It is strictly confidential and may contain legally privileged information.
No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended addressee, then please delete it from your system and notify the sender immediately.
You are hereby notified that any use, disclosure, copying or any action taken in reliance on it is strictly prohibited and may be unlawful.
- Thank you.
More information about the Python-ideas
mailing list