How do I get rid of ,00 in a mark.
I don't want to show the decimal.
1650 instead of 1650,00
How do I get rid of ,00 in a mark
Re: How do I get rid of ,00 in a mark
Hi Martin,
We've just revised it. Thanks for reporting it.
Here there are the changes, if you want to apply them. In Series.php you'll find the formatValue:
Change it for this:
We've just revised it. Thanks for reporting it.
Here there are the changes, if you want to apply them. In Series.php you'll find the formatValue:
Code: Select all
private function formatValue($value) {
$LOCALE = localeconv();
$tmpResult = number_format($value,2,
$LOCALE['decimal_point'],
$LOCALE['thousands_sep']);
return $tmpResult;
}
Code: Select all
private function formatValue($value) {
$LOCALE = localeconv();
try { // CDI TF02010053
if (fmod((double)$value,1)!=0) {
if ($LOCALE['frac_digits'] != $this->valuesDecimal)
$decimals=$this->valuesDecimal;
else
$decimals=$LOCALE['frac_digits'];
}
else
$decimals=0;
$tmpResult = number_format($value,$decimals,
$LOCALE['decimal_point'],
$LOCALE['thousands_sep']);
if ($tmpResult=='-0') {
$tmpResult='0';
}
} catch (Exception $e) {
$tmpResult = number_format($value, $decimals,
$LOCALE['decimal_point'],
$LOCALE['thousands_sep']);
}
return $tmpResult;
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How do I get rid of ,00 in a mark
Thanks a lot!