diff options
| author | Paul Buetow <paul@buetow.org> | 2025-11-25 22:47:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-11-25 22:47:26 +0200 |
| commit | 57a7b5961037eb565d9cddc324bd0246daff440b (patch) | |
| tree | 591c40bfbeea1008fadb7c085827af05b430afed /README.md | |
| parent | 488aeb5506e6b4ce34e88ea29cf01971531eb0b6 (diff) | |
Update README examples with calculation steps
Amp-Thread-ID: https://ampcode.com/threads/T-3883950c-6af3-4944-8596-7a40341c9c58
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 |
