MCPcopy Index your code
hub / github.com/PixelsCommander/HTML-GL / numDecimals

Function numDecimals

page/js/dat.gui.js:794–801  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

792 );
793
794 function numDecimals(x) {
795 x = x.toString();
796 if (x.indexOf('.') > -1) {
797 return x.length - x.indexOf('.') - 1;
798 } else {
799 return 0;
800 }
801 }
802
803 return NumberController;
804

Callers 2

NumberControllerFunction · 0.85
dat.gui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected