MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / formatNumber

Function formatNumber

Three.js/js/jquery-ui.js:8877–8885  ·  view source on GitHub ↗
(match, value, len)

Source from the content-addressed store, hash-verified

8875 },
8876 // Format a number, with leading zero if necessary
8877 formatNumber = function(match, value, len) {
8878 var num = "" + value;
8879 if (lookAhead(match)) {
8880 while (num.length < len) {
8881 num = "0" + num;
8882 }
8883 }
8884 return num;
8885 },
8886 // Format a name, short or long as requested
8887 formatName = function(match, value, shortNames, longNames) {
8888 return (lookAhead(match) ? longNames[value] : shortNames[value]);

Callers 3

mathbox-core.jsFile · 0.85
mathbox-bundle.jsFile · 0.85
jquery-ui.jsFile · 0.85

Calls 1

lookAheadFunction · 0.85

Tested by

no test coverage detected