Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Formatting Numbers with Javascript


Message #1 by "Paul Beaulieu" <paulbeaulieu@s...> on Fri, 24 Jan 2003 00:25:22 -0500
Hi...

In VBScript you can use the function FormatCurrency to output a number in the form $00.00. Is there any such function in JavaScript?

For example:

abc = 150.00

<td>
   <%=FormatCurrency(abc,2)%>
</td>

Is there something similar in JavaScript?

Thanks, Paul.

  Return to Index