Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

separador de miles javascript

function format (num) {
		    var reg=/d{1,3}(?=(d{3})+$)/g; 
		    return (num + '').replace(reg, '$&,');
		}
Source by programmerclick.com #
 
PREVIOUS NEXT
Tagged: #separador #de #miles #javascript
ADD COMMENT
Topic
Name
6+7 =