Home
last modified time | relevance | path

Searched refs:decimalPlaces (Results 1 – 8 of 8) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dguvas12d.js45 function roundNum(num, decimalPlaces) argument
47 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
48 …return (Math.round((num + extraNum) * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces)…
Dgroveo2.js37 function roundNum(num, decimalPlaces) argument
39 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
40 …return (Math.round((num + extraNum) * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces)…
Dina132.js37 function roundNum(num, decimalPlaces) argument
39 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
40 var numerator = Math.round((num + extraNum) * (Math.pow(10, decimalPlaces)));
41 var denominator = Math.pow(10, decimalPlaces);
Djoystick12.js41 function roundNum(num, decimalPlaces) argument
43 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
44 var numerator = Math.round((num + extraNum) * (Math.pow(10, decimalPlaces)));
45 var denominator = Math.pow(10, decimalPlaces);
Dotp538u.js51 function roundNum(num, decimalPlaces) argument
53 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
55 (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));
Denc03r.js54 function roundNum(num, decimalPlaces) argument
56 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
57 return (Math.round((num + extraNum) * (Math.pow(10, decimalPlaces))) /
58 Math.pow(10, decimalPlaces));
Dh3lis331dl.js68 function roundNum(num, decimalPlaces) argument
70 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
72 * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));
Dmma7660.js73 function roundNum(num, decimalPlaces) argument
75 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000));
77 * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));