- 2
C++ and floats
What should I #include in order to print a float?
4 Answers
+ 1
Do you mean print a float like
float a=7.5;
cout<<a;
or something different ?
+ 1
Yes but i have an equation y/2. Y is 11 in this example and its printing an int
+ 1
I figured it out. Lol y is an integer
+ 1
Meshack Msengelwa Nothing needed to include in order to use float numbers in C++