Why does using the float data type doesn’t get you exactly the same answer as using the double data type?

1 answer

you have fewer digits of precision, so if there are differences after the 7th decimal place, they will be lost. Better review floating-point calculations some more.