You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stephen Ting <st...@shinyang.com.my> on 2002/11/28 08:53:07 UTC

[OT] Regular Expression help

I am new to regular expression. 
In javascript, How to convert a number say in any format 0.0 or 0.000 or
0.000000 and it will format to 0.0000(for decimal places)?
 
Thanks 
 
regards,
Stephen

Re: [OT] Regular Expression help

Posted by Gemes Tibor <ge...@regens.hu>.
2002. november 28. 08:53 dátummal Stephen Ting ezt írtad:
> I am new to regular expression.
> In javascript, How to convert a number say in any format 0.0 or 0.000 or
> 0.000000 and it will format to 0.0000(for decimal places)?

What about a javascript mailing list?  Or a simple google search:

http://www.google.com/search?q=format+javascript+decimal

The first result:

http://www.mredkj.com/javascript/numberFormat.html

Tib


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>