answersLogoWhite

0

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.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

Earn +20 pts
Q: How do you make Decimal fraction in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp