Round using precision setting

This commit is contained in:
Brian Miyaji
2014-02-21 09:00:22 +11:00
parent 35918a9143
commit d8064eabb0
8 changed files with 57 additions and 56 deletions

View File

@@ -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,
),
),
),