I've been learning some Haskell and I'm really confused by this behaviour when multiplying 4.5 * 7.65 in the console the result given is 34.425000000000004 and not the correct answer of 34.425. Can anyone explain why this is happening?
Thanks
I've been learning some Haskell and I'm really confused by this behaviour when multiplying 4.5 * 7.65 in the console the result given is 34.425000000000004 and not the correct answer of 34.425. Can anyone explain why this is happening?
Thanks