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

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.