How does floating point error propagate when doing mathematical operations in C++?
问题 Let's say that we have declared the following variables float a = 1.2291; float b = 3.99; float variables have precision 6, which (if I understand correctly) means that the difference between the number that the computer actually stores and the actual number that you want will be less than 10^-6 that means that both a and b have some error that is less than 10^-6 so inside the computer a could actually be 1.229100000012123 and b could be 3.9900000191919 now let's say that you have the