New course! Every coder should learn Generative AI!
Try a free lesson+ 1
do we have the data type "float" ?
4 Answers
+ 5
yes, float variable_name = 0.0f;
+ 1
yes
+ 1
yes
- 1
yeah float is a data. Dont confuse it with double. Double is for both int as well as float except length of int must not be small like 123 or 12, it should be 12345678 etc.
float var= 2.12f
double var1= 12344557 or 22.44
int var2= 2 or 12 or 125