What is the difference between float and double?
Huge difference. As the name implies, a double has 2x the precision of float[1]. In general a double has 15 decimal digits of precision, while float has 7. Here’s how the number of digits are calculated: double has 52 mantissa bits + 1 hidden bit: log(253)÷log(10) = 15.95 digits float has 23 mantissa bits + … Read more