Round using precision setting
This commit is contained in:
@@ -12,7 +12,7 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w',
|
||||
'sp_format' => 'integer',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => 1,
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
@@ -23,7 +23,7 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$l',
|
||||
'sp_format' => 'integer',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => 2,
|
||||
'sp_order' => 'ASC',
|
||||
),
|
||||
@@ -34,15 +34,6 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w / $eventsplayed',
|
||||
'sp_format' => 'decimal',
|
||||
'sp_precision' => 3,
|
||||
),
|
||||
),
|
||||
array(
|
||||
'post_title' => 'GB',
|
||||
'post_name' => 'gb',
|
||||
'meta' => array(
|
||||
'sp_equation' => '( $wmax + $l - $w - $lmax ) / 2',
|
||||
'sp_format' => 'decimal',
|
||||
'sp_precision' => 2,
|
||||
),
|
||||
),
|
||||
@@ -52,7 +43,7 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$rfor',
|
||||
'sp_format' => 'integer',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => 3,
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
@@ -63,7 +54,7 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$ragainst',
|
||||
'sp_format' => 'integer',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -72,7 +63,7 @@ $sportspress_sports['baseball'] = array(
|
||||
'meta' => array(
|
||||
'sp_equation' => '$streak',
|
||||
'sp_format' => 'integer',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -87,7 +87,7 @@ $sportspress_sports['basketball'] = array(
|
||||
'post_title' => 'Pct',
|
||||
'post_name' => 'pct',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w / $eventsplayed * 10 * 10',
|
||||
'sp_equation' => '$w / $eventsplayed * 100',
|
||||
),
|
||||
),
|
||||
array(
|
||||
|
||||
@@ -37,7 +37,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'p',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -45,7 +45,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'w',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -53,7 +53,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'd',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$d',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -61,7 +61,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'l',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$l',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -69,7 +69,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'b',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$bonus',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -77,7 +77,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'f',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$pointsfor',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -85,7 +85,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'a',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$pointsagainst',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -93,7 +93,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'pd',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$pointsfor - $pointsagainst',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -101,7 +101,7 @@ $sportspress_sports['rugby'] = array(
|
||||
'post_name' => 'pts',
|
||||
'meta' => array(
|
||||
'sp_equation' => '( $w + $bonus ) * 2 + $d',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => '1',
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
|
||||
@@ -62,7 +62,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'p',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$eventsplayed',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -70,7 +70,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'w',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -78,7 +78,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'd',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$d',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -86,7 +86,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'l',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$l',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -94,7 +94,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'f',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsfor',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => '3',
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
@@ -104,7 +104,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'a',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsagainst',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
),
|
||||
),
|
||||
array(
|
||||
@@ -112,7 +112,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'gd',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$goalsfor - $goalsagainst',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => '2',
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
@@ -122,7 +122,7 @@ $sportspress_sports['soccer'] = array(
|
||||
'post_name' => 'pts',
|
||||
'meta' => array(
|
||||
'sp_equation' => '$w * 3 + $d',
|
||||
'sp_precision' => 1,
|
||||
'sp_precision' => 0,
|
||||
'sp_priority' => '1',
|
||||
'sp_order' => 'DESC',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user