Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C float division

// 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
 
PREVIOUS NEXT
Tagged: #C #float #division
ADD COMMENT
Topic
Name
4+2 =