[erlang-questions] power(N,P), cant get it to work

Richard A. O'Keefe <>
Thu Jun 19 00:38:13 CEST 2008

On 18 Jun 2008, at 6:36 pm, Andreas Hillqvist wrote:

> I can not see how the code will terminate for a negative N?

Yes, my stupid mistake.  Of course unary minus is available.
Select section 6.12 "Arithmetic expressions" from the
table of contents on the left.

More information about the erlang-questions mailing list