Skip to content

METplus 6 Rounding Differences #2831

Discussion options

You must be logged in to vote

@lindsayblank, I certainly agree that these very small numeric differences out in the 5th decimal place are not a reason for concern.

Many years ago we ran into issues with checking for equality of floating point numbers and switched to using these is_eq(...) functions to do so. They check for the differences of the numbers being within some sort of tolerance. By default, we use a "tight tolerance" of 10E-10 but in other contexts, we use a "loose tolerance" of 10E-5.

I'm not that surprised or concerned about differences in the 5th decimal place of large partial sum values. Since they are sums of squares, very small differences in the raw fcst/obs input values get amplified when they're sq…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JohnHalleyGotway
Comment options

Answer selected by lindsayblank
@lindsayblank
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: testing Software testing issue
2 participants