technoblogy / ulisp-arm

A version of the Lisp programming language for ARM-based boards.
http://www.ulisp.com/
MIT License
97 stars 30 forks source link

expt should be able to raise negative numbers to integer powers #45

Closed technoblogy closed 3 years ago

technoblogy commented 3 years ago
> (expt -2 2)
4

> (expt -2.0 2)
Error: ‘expt’ invalid result

Thanks to Fausto Saporito for reporting this.