Page 1 of 1

Power node cannot handle negative exponent

Posted: Sun Aug 24, 2025 22:27
by dtristram
in Wire, the Power node returns inf when given a negative exponent.

Negative exponents are a thing. 2 ^ (-1) = 1/2

please fix

Re: Power node cannot handle negative exponent

Posted: Mon Aug 25, 2025 21:23
by Christoph
Which version of Wire are you running? It looks about correct to me on 7.23.1:
Screenshot 2025-08-25 222246.png
Screenshot 2025-08-25 222246.png (14.09 KiB) Viewed 858 times

Re: Power node cannot handle negative exponent

Posted: Tue Aug 26, 2025 21:13
by dtristram
Ah, I see what happened. I had

Int In => Power => 1/x.

The result of an Integer negative exponent is rounded to zero as the result of Power is cast to Int. Then the 1/x gives inf.

Working as designed.

David