PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
bower-config
/
node_modules
/
mout
/
src
/
number
define(['../lang/toNumber'], function(toNumber){ /** * Enforce a specific amount of decimal digits and also fix floating * point rounding issues. */ function enforcePrecision(val, nDecimalDigits){ val = toNumber(val); var pow = Math.pow(10, nDecimalDigits); return +(Math.round(val * pow) / pow).toFixed(nDecimalDigits); } return enforcePrecision; });
[-] MAX_INT.js
[edit]
[-] toInt.js
[edit]
[+]
..
[-] MAX_SAFE_INTEGER.js
[edit]
[-] nth.js
[edit]
[-] sign.js
[edit]
[-] toUInt31.js
[edit]
[-] pad.js
[edit]
[-] rol.js
[edit]
[-] MAX_UINT.js
[edit]
[-] enforcePrecision.js
[edit]
[-] isNaN.js
[edit]
[-] abbreviate.js
[edit]
[-] currencyFormat.js
[edit]
[-] toUInt.js
[edit]
[-] MIN_INT.js
[edit]
[-] ordinal.js
[edit]
[-] ror.js
[edit]