Re: JavaScript does make errors when dealing just with integers



On Aug 19, 2:34 pm, Joost Diepenmaat <jo...@xxxxxxxxx> wrote:
lorlarz <lorl...@xxxxxxxxx> writes:
On Aug 19, 2:04 pm, Joost Diepenmaat <jo...@xxxxxxxxx> wrote:

Just in case it escaped you: 0.9 is NOT an integer, so you are NOT
working with "just integers". We've done this to death.

.9 IS A NEEDED CORRECTION FACTOR AND NOT IN THE PROGRAM THE WAY IT
**FAILS**.

The .9 is what has to be added to make the pure integer arithmetic
stop making
errors and coming up short. In the experiment, you take it OUT.

Once you remove the .9, all are integers and the math is supposed to
be exact,
and it is not.

Well. how about you bloody well show us the code that demonstrates the
problem in a concise, well-formatted and clear way. Instead of, you
know, rambling on incoherently.

http://www.catb.org/~esr/faqs/smart-questions.html#id306810

--
Joost Diepenmaat | blog:http://joost.zeekat.nl/| work:http://zeekat.nl/- Hide quoted text -

- Show quoted text -

Well, its 100% all mine and I take full responsibility. In contrast:
What team of
script kiddie monkeys did you work with for your ajax fiasco?
.



Relevant Pages