How to get the size, min and max of float Data Type in C++

1 Answer

0 votes
#include <iostream>

using namespace std;

int main()
{
	cout << sizeof(float) << endl;
	cout << FLT_MAX << endl;
	cout << FLT_MIN << endl;

	return 0;
}


/*
run:

4
3.40282e+38
1.17549e-38

*/

 



answered Dec 10, 2016 by avibootz

Related questions

1 answer 196 views
1 answer 157 views
1 answer 176 views
1 answer 177 views
...