Floating point issue

Aakash Jana aakashjana2002 at gmail.com
Fri Apr 17 07:13:24 EDT 2020


I am calculating couple of ratios and according to the problem there must
be a 6 decimal precision. But when I print the result I only get one 0.
E.g:- 2 / 5 = 0.400000 but I am only getting 0.4

On Fri, 17 Apr 2020, 4:08 am Muneer Malla <mallamuneer123 at gmail.com wrote:

> Dear All
> hope you all are fine and doing good in these critical conditions
> While I am need to Python
> And I a generally using it in running a software QIIME
> in virtual machine (Linux based).
> I need to install python 3.7 or above version, however the previously
> installed version is python2.7
> I tried many commands
> sudo apt-get install python3.8
> after running the command it fails
> I removed pthon 2.7
> but again when I run the command
> Python --version
> it again shows python 2.7
> please suggest the commands
> I have my python version 3.8 downloaded in the download folder
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list