We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8562cf8 commit dd212eeCopy full SHA for dd212ee
src/Money/Amount.php
@@ -40,7 +40,7 @@ public function withMajorUnit($amount)
40
{
41
if (is_int($amount) || is_float($amount) || (is_string($amount) && preg_match('/^[0-9]*\.[0-9]*$/', $amount))) {
42
$amount = (float)$amount * pow(10, $this->currency->getDigits());
43
-var_dump(floor($amount)); var_dump(round($amount, 6));
+
44
if (floor($amount) != round($amount, 6)) {
45
// Too many decimal digits for the currency.
46
throw new UnexpectedValueException(sprintf(
0 commit comments