c float division

Solutions on MaxInterview for c float division by the best coders in the world

showing results for - "c float division"
Brigid
11 Sep 2020
1// By default what '/' is doing is a simple euclidian division
2// (The remainder is calculated with modulo '%')
3//	Casting both numbers to float will get you a nice decimal
4
5float f = (float)a / (float)b