I found I can call an internal function two ways but I am unsure as to what the difference might be.
I can call an internal function by:
var myVar3 = 3.4572894
function main(){
myVar = efsInternal( "rnd", myVar3, 2 );
//or
myVar1 = rnd(myVar3, 2);
debugPrintln(myVar, "myVar- ");
debugPrintln(myVar1, "myVar1- ");
}
function rnd(value, N) { //N = round to N # of digits
var n;
var mult=1;
for(n=0;n<N;n++) mult*=10;
value*=mult;
return Math.round( value,N)/mult;
}
Is the only difference that using efsInternal returns a series and
myVar = rnd(myVar3, 2); just returns the current value?
Thanks in advance.
I can call an internal function by:
var myVar3 = 3.4572894
function main(){
myVar = efsInternal( "rnd", myVar3, 2 );
//or
myVar1 = rnd(myVar3, 2);
debugPrintln(myVar, "myVar- ");
debugPrintln(myVar1, "myVar1- ");
}
function rnd(value, N) { //N = round to N # of digits
var n;
var mult=1;
for(n=0;n<N;n++) mult*=10;
value*=mult;
return Math.round( value,N)/mult;
}
Is the only difference that using efsInternal returns a series and
myVar = rnd(myVar3, 2); just returns the current value?
Thanks in advance.
Comment