Actions
Bug #10989
closedComplex Exponentiation
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]
Description
Hello, it looks a sort of bug to me, doesn't it?
ruby -e 'p (1i) ** (2.0)'
(-1.0+1.2246467991473532e-16i)
Updated by mrkn (Kenta Murata) about 9 years ago
- Status changed from Open to Rejected
It's not a bug but just a floating point arithmetic error.
$ ruby -e 'p 1i ** 2'
(-1+0i)
Actions
Like0
Like0