r.burrowes@auckland.ac.nz (Robert Burrowes)
- Login: r.burrowes@auckland.ac.nz
- Registered on: 09/22/2021
- Last sign in: 09/22/2021
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/22/2021
-
11:27 PM Ruby Bug #18188 (Rejected): -1 ** 0 is 1 not -1
- Any negative number to the power of 0 is 1, but ruby is returning -1.
i.e. it should be n == 0 ? 1 : x ** n
/usr/local/ruby3.0/bin/ruby
puts -1**0
-1