Is there such a thing as number_format() in JavaScript (Instead of PHP)???
| From: | Scott Fletcher | Date: | Tue, 16 Sep 2003 16:32:50 +0000 |
| Subject: | Is there such a thing as number_format() in JavaScript (Instead of PHP)??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162762@lists.php.net to get a copy of this message | ||
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