It did? I tried it once and javascript came up with the same result. What browsers did you try? I ended up implementing javascript version of number_format().

Scott Fletcher wrote:

Ah! Never mind. I only need to do this...

AmtRequestBy = Math.round(AmtRequestBy*100)/100;

That is multiplying by 100 and dividing by 100 and that will fix it.

Sorry for hte Spam
Scott F.

"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi Fellas!

   Javascript is driving me crazy.  I'm not looking forward to writing a
user-defined function that would do something to the numbers as
number_format would do.


When I do something like (1.00 + 2.34), I would expect a 3.34 in

return,


not a 3.34900388389495.

Thanks,
Scott



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to