Searched refs:decimalPlaces (Results 1 – 8 of 8) sorted by relevance
/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
D | guvas12d.js | 45 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)…
|
D | groveo2.js | 37 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)…
|
D | ina132.js | 37 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);
|
D | joystick12.js | 41 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);
|
D | otp538u.js | 51 function roundNum(num, decimalPlaces) argument 53 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000)); 55 (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));
|
D | enc03r.js | 54 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));
|
D | h3lis331dl.js | 68 function roundNum(num, decimalPlaces) argument 70 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000)); 72 * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));
|
D | mma7660.js | 73 function roundNum(num, decimalPlaces) argument 75 var extraNum = (1 / (Math.pow(10, decimalPlaces) * 1000)); 77 * (Math.pow(10, decimalPlaces))) / Math.pow(10, decimalPlaces));
|