On 01/07/2014 22:17, Pedro Izecksohn wrote:
pedro@microboard:~$ /usr/bin/python3
Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
1-0.95
0.050000000000000044


   How to get 0.05 as result?

   bc has scale=2 . Has Python some similar feature?


Asked and answered roughly one trillion times. Try searching for python floating point, not that this is specific to python.

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to