[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Contest



I got 0.79999999999999993.  This looks right considering the bugs involved.
Which one is affecting you?

 1.  You're using eval under Windows 3.1.  It'll kill Netscape dead.
 2.  You're using one of the platforms that exhibits rounding error with
floats.  We were just talking about this in the mailing list yesterday on
how to re-round the value.

Here's the working script I used:

<SCRIPT>
document.write(eval(0.85-0.05))
document.write("<BR>")
</SCRIPT>

At 04:50 AM 3/3/96 -0500, you wrote:
>To All:
>
>I hereby declare a contest, the winner wins the resault amount in dollars !!!
>Terms:He who first finds a 'fix' to the following script, so it gives the
>correct answer(by the widespread euclidean system). AND explains the
>existing resualt.
>
>Here it is:
>document.write(eval(0.85-0.05))
>
>The check is waiting for YOU !
>
>Ellie.
>________________________________________________
>
>CCITT - Can't Concieve Inteligent Thoughts Today
>
>Ellie wysiwyg        ---        Elliep19@gdi.net
>
>My Home page - http://pages.prodigy.com/wysiwyg/
>________________________________________________
>
>--------------------------------------------------------------------
>For help about the list, please send a message to 'majordomo@obscure.org'
>with the message body 'help'. To unsubscribe, send a message to
>'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
>List archives and pointer to FAQ: http://www.obscure.org/javascript/
>
>

--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/