Hi Camillo ;-)
Use the method #closeTo: instead of #=. Comparing floats with #= almost never works.
Although "(Float halfPi / 2) tan" is printed as 1.0, it is not exactly 1.0 due to rounding errors in the calucaltaion and/or the internal representation.
(Float halfPi / 2) tan - 1.0 --> -1.110223024625156e-16
Lukas