Lines Matching refs:aval

684 function write_num_f1(r/*:Array<string>*/, aval/*:number*/, sign/*:string*/)/*:string*/ {  argument
685 var den = parseInt(r[4],10), rr = Math.round(aval * den), base = Math.floor(rr/den);
689 function write_num_f2(r/*:Array<string>*/, aval/*:number*/, sign/*:string*/)/*:string*/ { argument
690 return sign + (aval === 0 ? "" : ""+aval) + fill(" ", r[1].length + 2 + r[4].length);
732 var r/*:?Array<string>*/, ri, ff, aval = Math.abs(val), sign = val < 0 ? "-" : "";
733 if(fmt.match(/^00+$/)) return sign + pad0r(aval,fmt.length);
738 if((r = fmt.match(frac1))) return write_num_f1(r, aval, sign);
739 if(fmt.match(/^#+0+$/)) return sign + pad0r(aval,fmt.length - fmt.indexOf("0"));
746 …return sign + rnd(aval, r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").r…
748 if((r = fmt.match(/^#{1,3},##0(\.?)$/))) return sign + commaify(pad0r(aval,0));
765 ff = SSF_frac(aval, Math.pow(10,ri)-1, false);
777 ff = SSF_frac(aval, Math.pow(10,ri)-1, true);
799 case "#,###": var x = commaify(pad0r(aval,0)); return x !== "0" ? sign + x : "";
848 var r/*:?Array<string>*/, ri, ff, aval = Math.abs(val), sign = val < 0 ? "-" : "";
849 if(fmt.match(/^00+$/)) return sign + pad0(aval,fmt.length);
854 if((r = fmt.match(frac1))) return write_num_f2(r, aval, sign);
855 if(fmt.match(/^#+0+$/)) return sign + pad0(aval,fmt.length - fmt.indexOf("0"));
866 …return sign + (""+aval).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./…
868 if((r = fmt.match(/^#{1,3},##0(\.?)$/))) return sign + commaify((""+aval));
885 ff = SSF_frac(aval, Math.pow(10,ri)-1, false);
897 ff = SSF_frac(aval, Math.pow(10,ri)-1, true);
917 case "#,###": var x = commaify(""+aval); return x !== "0" ? sign + x : "";