0

How do you make Decimal fraction in c plus plus?

Updated: 10/1/2022

Wiki User

ā 11y ago

Use a double or a float data type. While these are suitable for most floating point purposes, there may be times when you need to deal with extremely small or extremely large numbers with a higher degree of accuracy than is possible with the built-in types. In these cases you must either define your own data type or use a third-party data type. For instance, calculating the millionth decimal digit of pi cannot be achieved with the built-in types alone.

Wiki User

ā 11y ago

Earn +20 pts
Q: How do you make Decimal fraction in c plus plus?
Submit
Still have questions?
Continue Learning about Engineering
Related questions

Can a float be displayed as a fraction in C?

As a decimal fraction, yes.

What is B plus B plus B plus C plus C plus C?

It is impossible to give any decimal/numeric value if we are not given the values of at least one variable, so the answer is B + B + B + C + C + C.

Can you make a website with C plus plus?

You cannot make a website with C++.

Yes.

Make programme for multification of three no in c plus plus?

result = a * b * c;

What is 5 c in decimal form?

A decimal number is simply a way of representing a number in such a way that the place value of each digit is ten times that of the digit to its right. If it does not contain a fractional part then the decimal representation does not require a decimal point. So the decimal for 5 c is 5 c &ndash; as in the question. If you want it as a decimal fraction of some other quantity then you need to specify that second quantity.

When will you make a function inline in c plus plus?

yes,we can make function inline

How can you write a fraction in a graphing calculator?

You can add fractions if you have a scientific calculator. All you have to do is press the b/c button. If you don't have one, you could always turn the fraction into a decimal.

How can you make a triangle in Visual C plus plus 2010?

Nevermind, I did it.

How can you make a video game with c plus plus?

Cpp(C++) is used to make 'Many' programs because it is universal across many devices.

How do you find a decimal equivalent to a given fraction?

By hand, you do long division. Add a decimal point and as many zeros to the right of the decimal as necessary: 3/4 = 0.75 -------- 4 | 3.00 0 30 28 20 20 0 Sorry that I cannot make the numbers line up due to the proportional fonts.

What's 35 c to a decimal?

35 IS a decimal. And the value of 35 c, as a decimal, depends on the value of c.