Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var FORMATTER = {
- price : function(value) { return '$' + value.toFixed(2); },
- pricePer : function(value) { return (value * 100).toFixed(2) + '%'; },
- priceChg : function(value) { return (value >= 0 ? '+' : '-') + '$' + Math.abs(value).toFixed(2); }
- };
- var str = YAHOO.util.Number.format(12345, { thousandsSeparator: ',' } );
Add Comment
Please, Sign In to add comment