summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-28 13:19:25 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-28 13:19:25 -0800
commitcd36f96dfc03e3425d2d690254a8ce1b9178a751 (patch)
treebef7c6fde6c433cc2daf7a672fadee90247589f1 /doc
parente5dcf23d1cc67c15dbc75ba1659483c3ab2ef6c0 (diff)
floats fully implemented
Diffstat (limited to 'doc')
-rw-r--r--doc/precedent.15
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/precedent.1 b/doc/precedent.1
index 6b98479..0231d84 100644
--- a/doc/precedent.1
+++ b/doc/precedent.1
@@ -68,7 +68,10 @@ literals or key references. The following are examples of key references with ar
\-\- If its first argument is 0, returns 1. Otherwise, returns 0.
\fBsum()\fP
-\-\- Evaluates all its arguments. Returns the sum.
+\-\- Evaluates all its arguments and returns the sum. If any argument is a float, returns a float. Otherwise, returns an int.
+
+\fBsub()\fP
+\-\- Evaluates all its arguments. Subtracts every argument after the first from the first. Returns the result, which is a float if any arguments were floats, or an int if all arguments were ints.
\fBprint()\fP
\-\- Evaluates its first argument and prints it to the terminal.