Skip to content

Coding Hint

Solution of Technical Problems.

  • PHP
  • Facebook
  • Javascript
  • jQuery
  • Twitter
  • Smarty

Tag: convert number in currency

Format Number in Currency using javascript

December 26, 2011 Chandan Sharma Javascript Comments

Now you can convert your number in currency format using the below function. function formatNumber(number) { number=number+”; return number.replace(/[^\d\.\-]/g,”).replace(/(\.\d{2})[\W\w]+/g, ‘$1’).split(”).reverse().join(”).replace(/(\d{3})/g,

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • Live
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Instapaper
  • FriendFeed
Continue reading »
Facebook Flash htaccess Javascript jQuery Linux MYSQL PHP Smarty Twitter
Powered by WordPress and Tortuga.