PageSourceSearch

https://cpbl.com.tw/theme/common/js/calculate-formula.js

js cpbl.com.tw collected 2026-09-24 09:23:25 UTC 854 bytes, 2 lines download raw bytes

1Vue.prototype.$bbFormult={calcObp:function(a,b,c,d,e){return 0<b+c+d+e?(a+c+d)/(b+c+d+e):0},calcSlg:function(a,b){return 0<b?a/b:0},calcAvg:function(a,b){return 0<b?a/b:0},calcGoga:function(a,b){return 0<b?a/b:0},calcSb:function(a,b){return 0<a+b?a/(a+b):0},calcTa:function(a,b,c,d,e,f,g,h,k){return 0<a-b+c+d?(e+f+g+h+k)/(a-b+c+d):0},calcOps:function(a,b){return parseFloat(a.toFixed(3))+parseFloat(b.toFixed(3))},calcInningPitched:function(a,b){return parseInt(a)+parseInt(Math.floor(b/3))+b%3*.1},calcIp:function(a,
2    b) { return a + b / 3 }, calcWhip: function (a, b, c, d) { a = this.calcIp(a, b); return 0 < a ? (c + d) / a : 0 }, calcEra: function (a, b, c) { a = this.calcIp(a, b); return 0 < a ? 9 * c / a : 0 }, calcCspct: function (a, b) { return 0 < a + b ? (a) / (a + b) : 0 },calcFpct:function(a,b,c){return 0<a+b+c?(a+b)/(a+b+c):0}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.