Fix data calculations for values above 1000
This commit is contained in:
@@ -274,7 +274,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
|
||||
if ( $adjustment != 0 ):
|
||||
$placeholder += sp_array_value( $adjustment, $stat->post_name, 0 );
|
||||
$placeholder = number_format( $placeholder, $stat->precision );
|
||||
$placeholder = number_format( $placeholder, $stat->precision, '', '' );
|
||||
endif;
|
||||
endif;
|
||||
endif;
|
||||
|
||||
@@ -295,7 +295,7 @@ class SP_Player_List extends SP_Custom_Post {
|
||||
|
||||
if ( $adjustment != 0 ):
|
||||
$placeholder += sp_array_value( $adjustment, $stat->post_name, 0 );
|
||||
$placeholder = number_format( $placeholder, $stat->precision );
|
||||
$placeholder = number_format( $placeholder, $stat->precision, '', '' );
|
||||
endif;
|
||||
endif;
|
||||
|
||||
|
||||
@@ -1011,7 +1011,7 @@ if ( !function_exists( 'sp_solve' ) ) {
|
||||
endif;
|
||||
|
||||
// Return solution
|
||||
return number_format( $eos->solveIF( str_replace( ' ', '', $equation ), $vars ), $precision );
|
||||
return number_format( $eos->solveIF( str_replace( ' ', '', $equation ), $vars ), $precision, '', '' );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user