I'm having issues displaying the full number of a float.
Example:
#include <iostream>
using namespace std;
float apple = 1.50f;
int main()
{
cout << float(apple) << endl;
// Outputs: '1.5', instead of: '1.50'.
return 0;
}
Is there a way I can solve this issue ?
Last edited on
It works!
Thanks, heaps bro.