+ 2
High-precision floating point numbers?
I read that variables of the datatype float or double have a true precision of only a few digits. What can I do if I need variables with a higher precision?
2 Réponses
+ 3
try long double instead of double for a better precision.
beware that the printed-at-screen precision is less that the real one. Depend on what function you use to prinr your number at screen you can configure the number of decimals to display.
+ 2
unsigned long double or an array that stores the zecimals.