Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added comparison command #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added comparison command #8

wants to merge 4 commits into from

Conversation

TheGrop
Copy link
Contributor

@TheGrop TheGrop commented Mar 7, 2017

Compares top two items on the stack.

TheGrop added 4 commits March 5, 2017 13:08
"p" for bringing the bottom item to the top of the stack, and "B" for
reversing the stack.
Added the "P" command, which raises the second element on the stack to
the (first element on the stack)th power.
Use the "=" to compare the top two items on the stack. This pushes 0 if
both are equal, 1 if the former is smaller than the latter, and -1
otherwise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant