Skip to content
Snippets Groups Projects

Fix a precision problem

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_sts_local_hit_correction into master

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.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading