103k views
2 votes
What is the smallest floating number can be represented in C++? -3.4*10^38

User Smessing
by
5.1k points

1 Answer

2 votes

Answer:

FLT_MIN.

Step-by-step explanation:

In C++ FLT_MIN is used to represent the smallest floating point number.You have to include two libraries for FLT_MIN to work and these are as following:-

limits.h

float.h

for example:-

#include <iostream>

#include<limits.h>

#include<float.h>

using namespace std;

int main() {

cout<<FLT_MIN;

return 0;

}

Output:-

3.40282e+38

User Brandon Evans
by
5.0k points