Subject: | Bug in decimal_precision func |
In decimal_precision there is a code at the end of sub:
if (!$precision) {
$::_error = 'Non-existant decimal precision';
return;
}
But $precision here can be 0 (for Japanese Yen), so (!defined
$precision) should be used instead.
I suspect there's the same bug with decimal_separator and
thousands_separator.