0

Unlimited decimals in c++?

is there anyway to print unlimited decimal digits in c++?

28th Nov 2017, 9:14 PM
Diddy
Diddy - avatar
5 Respostas
+ 3
What do you mean by unlimited decimal? All numbers must be finite in computers, otherwise we would need inifinite memory to store them
28th Nov 2017, 9:40 PM
Eligijus Silkartas
Eligijus Silkartas - avatar
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.
28th Nov 2017, 10:49 PM
Jakub Stasiak
Jakub Stasiak - avatar
0
i mean very high numbers with endings. sorry for the misunderstanding :)
29th Nov 2017, 5:46 AM
Diddy
Diddy - avatar
- 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.
29th Nov 2017, 9:47 AM
Timon Paßlick