cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Simple way to hold numbers with a lot of
Simple way to hold numbers with a lot of decimal numbers
Apr 8, 2013 at 1:33pm UTC
spikeash20
(5)
I have a task to hold a number like 4.0000000000000000199e+30 and, in a variable like long double (the largest of the data type) doesn't hold the whole number, holds only 4.099e+30, like that.
Do you have any advice to hold the whole number?
Apr 8, 2013 at 2:24pm UTC
krakow10
(21)
Perhaps no longer simple, but could you use a string?
Topic archived. No new replies allowed.