A sample code using Java double produces surprising results.

UNEXPECTED Result: 0.1d + 0.2d - 0.3d = 5.551115123125783E-17

Same code using Java float does not.

EXPECTED Result: 0.1d + 0.2d - 0.3d = 0


Below is the first of a couple of videos to follow on floating point numbers