Fixing decimal bug

This commit is contained in:
Dennis Eichhorn 2016-05-12 13:05:20 +02:00
parent 3f28193dd5
commit d7f4d63c95

View File

@ -154,7 +154,8 @@ class Money implements \Serializable
}
$right = substr($right, 0, -self::MAX_DECIMALS);
return (int) $left * 100000 + (int) $right;
return (int) $left * 10 * self::MAX_DECIMALS + (int) $right;
}
/**