From cd36f96dfc03e3425d2d690254a8ce1b9178a751 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Tue, 28 Feb 2023 13:19:25 -0800 Subject: floats fully implemented --- doc/precedent.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/precedent.1') 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. -- cgit v1.3.1