From 57a7b5961037eb565d9cddc324bd0246daff440b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 25 Nov 2025 22:47:26 +0200 Subject: Update README examples with calculation steps Amp-Thread-ID: https://ampcode.com/threads/T-3883950c-6af3-4944-8596-7a40341c9c58 Co-authored-by: Amp --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1a45da8..1d226a2 100644 --- a/README.md +++ b/README.md @@ -22,24 +22,32 @@ mage install ```bash perc 20% of 150 -# Output: 20.00% of 150.00 = 30.00 +# Output: +# 20.00% of 150.00 = 30.00 +# Steps: (20.00 / 100) * 150.00 = 0.20 * 150.00 = 30.00 perc what is 20% of 150 -# Output: 20.00% of 150.00 = 30.00 +# Output: +# 20.00% of 150.00 = 30.00 +# Steps: (20.00 / 100) * 150.00 = 0.20 * 150.00 = 30.00 ``` ### Find what percentage X is of Y ```bash perc 30 is what % of 150 -# Output: 30.00 is 20.00% of 150.00 +# Output: +# 30.00 is 20.00% of 150.00 +# Steps: (30.00 / 150.00) * 100 = 0.20 * 100 = 20.00% ``` ### Find the whole when X is Y% of it ```bash perc 30 is 20% of what -# Output: 30.00 is 20.00% of 150.00 +# Output: +# 30.00 is 20.00% of 150.00 +# Steps: (30.00 / 20.00) * 100 = 1.50 * 100 = 150.00 ``` ## Building -- cgit v1.2.3