Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Can float be converted to int in C

float my_float = 42.8f;
int my_int;
my_int = (int)my_float;          // => my_int=42
 
PREVIOUS NEXT
Tagged: #Can #float #converted #int #C
ADD COMMENT
Topic
Name
8+9 =