0
Unlimited decimals in c++?
is there anyway to print unlimited decimal digits in c++?
5 Answers
+ 3
What do you mean by unlimited decimal? All numbers must be finite in computers, otherwise we would need inifinite memory to store them
0
And if you mean "decimals that exceeds maximum type value" then you have to covert them to string and play around with form like that.
0
i mean very high numbers with endings. sorry for the misunderstanding :)
- 1
You have 16 digits with double and you can put an incredible amount of 0s between the digits and the floating point. If you really need more, use a library.