Virtronics Simulator

That gives x = 5 as well (although I'm surprised the "(float)(3.0)" compiled).

"(float)(2) + (float)(3.0)" also gives x = 5.

??