+ 3
When do we use variable type - double ?
Use of Variable type - double
3 Answers
+ 2
In short, although double allows for higher precision in its representation, for certain calculations it would produce larger errors. The "right" choice is: use as much precision as you need but not more and choose the right algorithm.
So, double is more precise but could potentially produce larger errors, whereas float is not as precise but it is more error-free.
+ 2
Hey!
Where, for example, you need a more accurate result of dividing two numbers.
Hope it's help :)
0
There is no such type - double in Python, type - float can satisfy your need.