Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert number to words javascript lakh

function numDifferentiation(value) {
  var val = Math.abs(value)
  if (val >= 10000000) {
    val = (val / 10000000).toFixed(2) + ' Cr';
  } else if (val >= 100000) {
    val = (val / 100000).toFixed(2) + ' Lac';
  }
  return val;
}
console.log(numDifferentiation(-500000))
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #number #words #javascript #lakh
ADD COMMENT
Topic
Name
7+3 =