Skip to content

Commit

Permalink
Updated user guide and screen shot
Browse files Browse the repository at this point in the history
This is to show deletion via a range of line numbers
  • Loading branch information
frossm committed Aug 5, 2022
1 parent ed31db6 commit 2665ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified graphics/ScreenShot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions mdbook/src/Chapters/CalculatorCommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ These commands, like the others you'll read about later, are executed by typing

|Command|Description|
|-------|-----------|
|u [#]<br> undo [#]| *UNDO*<br>By default, undo the last operation. However, if an undo stack line number is given, as displayed with the `list undo` command, undo will restore the stack back to that point. Please keep in mind that if you restore back to a previous undo state, later undo states will be discarded. You can't go back. Typically, however, `u` undo is used to simply undo the previous action|
|u [#]<br> undo [#]| **UNDO**<br>By default, undo the last operation. However, if an undo stack line number is given, as displayed with the `list undo` command, undo will restore the stack back to that point. Please keep in mind that if you restore back to a previous undo state, later undo states will be discarded. You can't go back. Typically, however, `u` undo is used to simply undo the previous action|
|f <br> flip | **FLIP SIGN**<br>Flip the sign on the top stack item (`line1`). This is effectively multiplying `line1` by -1|
|c <br> clear| **CLEAR**<br>Clear the current stack and the screen. Memory data is retained and you can undo the clear with the undo `u` command|
|cl <br> clean| **CLEAN SCREEN**<br>Clear the current screen, but keep the stack. After cleaning, the stack will be displayed at the top of the screen. Used to remove the clutter|
|d [#] <br> del [#] <br> drop [#]| **DELETE**<br>Delete the number on the top of the stack (`line1`) or, optionally, deletes the line number provided|
|d<br>d [#]<br>d [#-#]| **DELETE**<br>If `d` is given without any parameters, it will delete `line1`. If a line number is given after the `d`, that line number will be deleted. A range can be given as well, such as `d 1-3` and RPNCalc will delete those lines and everything inbetween|
|s [#] \[#] <br> swap [#] \[#]| **SWAP LINES**<br>Without an argument, swap the top two stack items (`line1 & line2`). You can swap any two line numbers in your stack by providing the two line numbers|
|%| **PERCENT**<br>Assumes `line1` contains a percent. This converts that into a number by simply dividing that value by 100. For example, if you want to take 50.123% of a number, you could just enter in `50.123 [ENTER] % [ENTER] *`|
|sqrt| **SQUARE ROOT**<br>Perform a [square root](https://en.wikipedia.org/wiki/Square_root) of the top stack item (`line1`)|
Expand Down

0 comments on commit 2665ec6

Please sign in to comment.