I'm having issues displaying the full number of a float.
using namespace std;
float apple = 1.50f;
cout << float(apple) << endl;
// Outputs: '1.5', instead of: '1.50'.
Is there a way I can solve this issue ?
Last edited on
Thanks, heaps bro.