Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38959

Re: python math problem

From Kene Meniru <Kene.Meniru@illom.org>
Subject Re: python math problem
Followup-To gmane.comp.python.general
Date 2013-02-15 15:23 -0500
Organization illom.org
References <kfm2t8$9ru$1@ger.gmane.org> <CAPM-O+wEJBOp62m_H9dvp=orS-DxWkuJtBLUc6DMC91aDrv85Q@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1846.1360959888.2939.python-list@python.org> (permalink)

Followups directed to: gmane.comp.python.general

Show all headers | View raw


Joel Goldstick wrote:

> 
> This is not a string, it is scientific notion for 1.53... times 10 to the
> -15th power.  Because of rounding errors caused by doing floating point
> math on in binary, you get a very small number instead of 0.
> 

I was just doing some testing and it was not equating to zero. Perhaps if I 
rounded it up I may be more successful.

-- 

Kene
::::::::::::::::::
KeMeniru@gmail.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python math problem Kene Meniru <Kene.Meniru@illom.org> - 2013-02-15 15:23 -0500

csiph-web