WTF: 4 divided by 7 = 0, huh?!?

BlitzMax Forums/BlitzMax Programming/WTF: 4 divided by 7 = 0, huh?!?

As for the C# debate.

This code also returns 0 in Mono 1.2:


using System;
class Hello {
static void Main() {
	System.Console.WriteLine(4/7);
	}
}


But this returns 0.5714285:


using System;
class Hello {
static void Main() {
	float f = 4;
	System.Console.WriteLine(f/7);
	}
}


So there's nothing wrong with BlitzMax, I'd say.