diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-07-20 09:07:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-07-20 09:07:20 -0700 |
commit | 7da23010b2afbaae4dc4b8f01d1f8950e2c878be (patch) | |
tree | 8d11d7966345d4c4c93ea2b201ef0b5d98728f35 /txr.1 | |
parent | e4caf8527d35df820c602b4e75a810f43082e39e (diff) | |
download | txr-7da23010b2afbaae4dc4b8f01d1f8950e2c878be.tar.gz txr-7da23010b2afbaae4dc4b8f01d1f8950e2c878be.tar.bz2 txr-7da23010b2afbaae4dc4b8f01d1f8950e2c878be.zip |
* arith.c (divi): Support one-argument form.
Use "/" name in error reporting, not "divi".
* eval.c (eval_init): Change registration of / so only
one argument is required out of two.
* txr.1: Document one-argument division.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10807,7 +10807,7 @@ A character may not be an operand of multiplication. .TP Syntax: - (/ <dividend> <divisor>) + (/ [<dividend>] <divisor>) (trunc <dividend> <divisor>) (mod <dividend> <divisor>) @@ -10816,7 +10816,8 @@ Description: The arguments to these functions are numbers. Characters are not permitted. The / function performs floating-point division. Each operands is first -converted to floating-point type, if necessary. +converted to floating-point type, if necessary. If <dividend> is omitted, +then it is taken to be 1.0 and the function performs a reciprocal. The trunc function performs a division of <dividend> by <divisor> whose result is truncated to integer toward zero. If both operands are integers, then an |