Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

format number to 2 digits javascript

number.toLocaleString("en-US", {
    minimumIntegerDigits: 2,
    useGrouping: false,
});
 
PREVIOUS NEXT
Tagged: #format #number #digits #javascript
ADD COMMENT
Topic
Name
5+5 =