If I take pi, for example, and find a random number from 1 to 1000, then divide pi by that number. Then, multiply pi by that number.
Should that cause floating point error?
(and, what is acceptable error on a processor?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that will almost certainly result in error (in the sense that the result will not be identical to the original value).
If you want to find the error, then what’s wrong (in this case) with
original - final?