From 96786939bd55e92a804e22793d766ccd390b4a40 Mon Sep 17 00:00:00 2001 From: Gaurav Makhecha Date: Tue, 15 Mar 2022 16:46:08 +0530 Subject: [PATCH] Apply text suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Samuel Štancl --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7cf6a33..172b054 100644 --- a/README.md +++ b/README.md @@ -166,13 +166,13 @@ $money = Money::fromDecimal(40.25, USD::class); $money->formatted(['decimalSeparator' => ',', 'prefix' => '$ ', 'suffix' => ' USD']); ``` -There is also a `->rawFormatted()` if you wish to use [math decimals](#math-decimals) instead of [display decimals](#display-decimals). +There's also `->rawFormatted()` if you wish to use [math decimals](#math-decimals) instead of [display decimals](#display-decimals). ```php $money = Money::new(123456, CZK::class); -$money->rawFormatted(); // 1 235,56 Kč +$money->rawFormatted(); // 1 234,56 Kč ``` -And converting the formatted value back to the Money instance is also possible. The package tries to extract the currency from the provided string. +Converting the formatted value back to the `Money` instance is also possible. The package tries to extract the currency from the provided string: ```php $money = money(1000); $formatted = $money->formatted(); // $10.00