Is there any difference between the computation of small floats – that are close to 0 – and big floats – that are far from 0?
Share
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.
It depends what kind of computation you are talking about. Adding two numbers together is likely to take the same length of time regardless of the magnitude of the number. In the case of division, the size of the operand can make a difference – for instance, see Intel reference manual page C.34:
If you try compiling the following code, you can see this in action:
Gives the following output for me