The StDev()
function returns a Double
value, so you'll have to account for floating-point error if you use those values in expressions that perform comparisons. Specifically, you should never use Double
values when checking for exact equality (e.g., myStDevValue=0
). Instead you should either check for
- values that are "close enough" to be considered equal,
or, for the particular case of a Standard Deviation
- values that are sufficiently larger (or smaller) than a specified fraction of the Mean to be considered significant (or insignificant).