MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / nfCore

Function nfCore

examples/js/processing.js:4958–4968  ·  view source on GitHub ↗
(value, plus, minus, leftDigits, rightDigits, group)

Source from the content-addressed store, hash-verified

4956 }
4957
4958 function nfCore(value, plus, minus, leftDigits, rightDigits, group) {
4959 if (value instanceof Array) {
4960 var arr = [];
4961 for (var i = 0, len = value.length; i < len; i++) {
4962 arr.push(nfCoreScalar(value[i], plus, minus, leftDigits, rightDigits, group));
4963 }
4964 return arr;
4965 } else {
4966 return nfCoreScalar(value, plus, minus, leftDigits, rightDigits, group);
4967 }
4968 }
4969
4970 // TODO: drop this and use nfCore (see below) code when we've fixed the rounding bug in nfCore
4971 p.nf = function() {

Callers 1

processing.jsFile · 0.85

Calls 1

nfCoreScalarFunction · 0.85

Tested by

no test coverage detected