How accurate is “double-precision floating-point format”?
问题 Let's say, using java, I type double number; If I need to use very big or very small values, how accurate can they be? I tried to read how doubles and floats work, but I don't really get it. For my term project in intro to programming, I might need to use different numbers with big ranges of value (many orders of magnitude). Let's say I create a while loop, while (number[i-1] - number[i] > ERROR) { //does stuff } Does the limitation of ERROR depend on the size of number[i]? If so, how can I