Answers for "float in int c"

2

what is float in c

float: It is used to store decimal numbers (numbers with floating point value) with single precision. double: It is used to store decimal numbers (numbers with floating point value) with double precision.
Posted by: Guest on March-03-2021
-1

c float to int

# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;
Posted by: Guest on May-29-2020

Browse Popular Code Answers by Language