diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-03-09 11:42:11 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-03-09 11:42:11 -0800 |
commit | 285e3a5c375774135c29c6b7ff3b4b811b6cacd1 (patch) | |
tree | c032fa7aae6fcc31aef3d62d9a452d6f6d9822fc /lib.c | |
parent | e844d3a602af4380c196d896b803b67d58ecbcea (diff) | |
download | txr-285e3a5c375774135c29c6b7ff3b4b811b6cacd1.tar.gz txr-285e3a5c375774135c29c6b7ff3b4b811b6cacd1.tar.bz2 txr-285e3a5c375774135c29c6b7ff3b4b811b6cacd1.zip |
expt: handle negative integer exponents with integer bases.
* arith.c (expt): The function overhauled. Raising integers to
negative integers now works. Raising zero to a negative is
diagnosed as a division by zero for operands of all kinds.
* txr.1: Documentation updated for expt, and also division by
zero error is documented for the / function.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions