[jQuery] Format number with pattern

[jQuery] Format number with pattern


Hi,
I need to format a number as specified in a input pattern, Something like
this:
$("money").format("###.###,##");
$("pi").format("#,#*");
so, money will allow something like 2.500,75
and pi wil allow something like 3.1416
If you know a plugin that could work this way or similar, please let me
know.
Thanks in advance,
IP
--
View this message in context: http://www.nabble.com/Format-number-with-pattern-tp20238216s27240p20238216.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.