3 ms·
But I bet you learnt a lot of new things from it: if (f != 1.1) puts("Do not compare a float to an integer value\n"); if (d == 1.1) put
by skitter 5y ago
But I bet you learnt a lot of new things from it:
if (f != 1.1)
puts("Do not compare a float to an integer value\n");
if (d == 1.1)
puts("But that's okay for a double\n");
In the back of my mind there's the fear that all of this was actually mean seriously...