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

Editing the master docs #43

Merged
merged 2 commits into from
Apr 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion docs/numeric.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,36 @@ Commands for numbers.

Pushing numbers is as easy as typing the number itself! ::

1234 Pushes 1, 2, 3, and 4 individually
1234 Pushes 1, 2, 3, and 4 individually
:144: Pushes 144 as a single number

1.2. Basic Arithmetic
---------------------

Seriously is a postfix language, meaning that operators come after arguments. ::

23+ This adds 3 to 2.
79- Subtracts 7 from 9.
35* Multiplies 5 by 3.
83/ Float division. This divides 3 by 8 returning 0.375.
37\ Integer division. This divides 7 by 3 returning 2.

1.3. Other Arithmetical Operators
---------------------------------

Other important operators in arithmetic include: ::

45^ Exponentiation. This raises 5 to the power of 4, returning 15625.
7:29:% Modulo operator. This calculates 29 mod 7, returning 1.

1.4. Boolean Operators
----------------------

*Description later* ::

33=
44<
25>

1.5. Trigonometric Functions
----------------------------