C float division
snippet in c

C float division

user2603

// By default what '/' is doing is a simple euclidian division
// (The remainder is calculated with modulo '%')
//	Casting both numbers to float will get you a nice decimal

float f = (float)a / (float)b