You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to Luke K. on LZ, we have a couple smaller enhancements to add to our new floating point equality function. Shouldn't change any results but will make the code prettier/more logical.
The following "else" is redundant:
if (a == b) { // shortcut, handles infinities
return true;
} else {
(The standard epsilon may be useful, but for now the freedom of a scaling factor to this smallest-floating difference may be less physical than the case of people being able to set epsilon to mimic some energy-separation at which point values are indistinguishable. Thus I am opting to leave as-is, for now.)
Thanks to Luke K. on LZ, we have a couple smaller enhancements to add to our new floating point equality function. Shouldn't change any results but will make the code prettier/more logical.
The text was updated successfully, but these errors were encountered: