answersLogoWhite

0

From the C++ standard:

"There are three floating point types: float, double, and long double. The type double provides at least as much precision as float, and the type long double provides at least as much precision as double. The set of values of the type float is a subset of the set of values of the type double; the set of values of the type double is a subset of the set of values of the type long double. The value representation of floating-point types is implementation-defined."

C++ does not impose any limits upon floating point values because, like all fundamental types, floats are imported from the C standard. However, you can determine those limits at compile time by querying the std::numeric_limits class template from the <limits> header.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is IEEE standard in c plus plus?

The format of floating-point numbers. On some platforms.


How do you save a radian value in c plus plus?

You can write it into a file as a floating-point value.


Is a plus plus plus b valid instruction in c?

Not by itself. If you said a+++b, then that would mean to add the incremented value of b to a and generate a result, but +++b is not valid.


Is the word main an illegal variable name in C PLUS PLUS?

I can tell you that it is not an illegal variable name in C. I do not currently have a C++ compiler installed, but I would assume that it would also be valid in C++.


What do you mean by c plus plus?

C++ is a programming language, but, in the same time, it's a valid expression. Example:A= C++is equivalent with:A= C, C= C+1It's a bit of a joke. In the programming language C, ++ is the increment operator, so C++ can be interpreted as "C, except one better."


How do you limit the floating in C Plus Plus in output statement?

Use setprecision.Example:#include #include using namespace std; int main() { double f = 3.14159; cout


How do you find absolute number in C plus plus?

For floating point numbers, do #include &lt;cmath&gt; and use std::abs(). For integers do #include&lt;cstdlib&gt; and use std::abs().


Is the double a modifier in c plus plus?

A double is a floating point type, greater than or equal in size to a float.


How can you print your name in c or c plus plus with out using semi column?

You can not print your name in C without a semi colon because according to the rules of C every statement should end with a semi colon.In fact without the semi colon it fails to be a valid C statement.


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c