Tag

rupiah

  • Total Source Code 1
  • Total Page : 1
  • You currently on page number : 1

Change Number To Rupiah Format (Indonesian Currency)

  • 28 April 2014
  • 626
  • rupiah,currency format,money

Example Number is 1234567, ti will be change to Rp. 1.234.567,00 syntax : function ChangeToRupiah(angka){ var rev = parseInt(angka, 10).toString().split("").reverse().join(""); var rev2 = ""; for(var i = 0; i < rev.length; i++){ rev2 += rev[i]; if((i + 1) % 3 === 0 && i !== (rev.length - 1)){ rev2 += "."; } } return "Rp. " Read more




Category