what will a float number evaluate to in c code example
Example 1: c float to int
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;
Example 2: what is float in c
A float is a number with a decimal point.
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;
A float is a number with a decimal point.