Skip to content
Snippets Groups Projects
Commit 1bde9384 authored by Administrator's avatar Administrator
Browse files

Fix a precision problem

When comapring real numbers for equality one shouldn't compare the difference
of both values with zero. Due to rounding effects the result can be slightly
differnt from zero. If the difference of the values is smaller than a a small
value ( e.g. 0.00001 ) both values are equal.

MR 1583
cherry-picked from bf16e631
parent ff8cc2db
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment