Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: 0.01i != complex(0, 0.01) at compile time #30243
Despite the inexact representation of 0.01, both 0.01i and complex(0, 0.01i) should do the same inexact computations. I would expect the compile time comparison to evaluate to true (complex() of compile-time constants returns a compile-time constant, too).
Instead there is a difference of -2.032879e-022i when subtracting the numbers.
(Assigning to me so I don't forget this, but anyone else is welcome to pick this up.)