3 ms·
> It's fairly straightforward to provide a proof, given a definition of division by zero, that 1 = 0. No, it is not. It's fairly straightforward to provide a p
by a1369209993 5y ago
> It's fairly straightforward to provide a proof, given a definition of division by zero, that 1 = 0.
No, it is not. It's fairly straightforward to provide a proof, given the false[0] premise that x*y/y = x, that 1 = 0.
0: Hell, I don't even need division by zero for that one:
uint8_t x = 2;
x = x*128;
// x is now (uint8_t)(2<<7) == (uint8_t)256 == 0
x = x/128;
// x is now 0>>7 == 0
// x is now x*y/y is 2*y/y is 2
if(x == 2) printf("it's two\n");
printf("it's %i\n",(int)x);