summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-03-09 11:42:11 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-03-09 11:42:11 -0800
commit285e3a5c375774135c29c6b7ff3b4b811b6cacd1 (patch)
treec032fa7aae6fcc31aef3d62d9a452d6f6d9822fc /lib.c
parente844d3a602af4380c196d896b803b67d58ecbcea (diff)
downloadtxr-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