When do you use fp:strict as opposed to fp:precise? Is it better to use the former if I want “more precise” calculations and avoid rounding errors? What is the heuristic behind using either?
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.
The standard IEEE 754 specifies a method for floating point calculations and storage of floating point values in memory.
Using
fp:strictmeans that all the rules of IEEE 754 are respected.fp:strictis used to sustain bitwise compatibility between different compilers and platforms.fp:preciseweakens some of the rules, however it warranties that the precision of the calculations will not be lost.fp:fastallows compiler specific optimizations and transformations of expressions containing floating point calculation. It is the fastest methods but the results will differ between different compilers and platforms.