Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmcarvalho committed Nov 23, 2023
2 parents aed54a0 + 25340fe commit 992096f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ $number = Number::from(10)
->divide(2.5) // now is 4.8
->multiplyBy(4) // now is 19.2
->sub(4); // now is 15.2

//or

$number = num(10)
->add(2) // now is 12
->divide(2.5) // now is 4.8
->multiplyBy(4) // now is 19.2
->sub(4); // now is 15.2

$number->equal(15.10); // false
$number->gt(10); // true
$number->gte(18); // false
Expand Down
1 change: 0 additions & 1 deletion src/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ public static function parse(?string $number, string $locale = null): ?Numerable
}
$formatter = new NumberFormatter($locale ?? config('app.locale', 'en'), NumberFormatter::DECIMAL);


return new Numerable($formatter->parse($number));
}

Expand Down

0 comments on commit 992096f

Please sign in to comment.