Closed jessegreenberg closed 6 years ago
On slack:
Jesse Greenberg [6:10 PM]
EnergySkateParkBasicsModel has an `isApproxEqual` function that returns true if two values are equal within a tolerance. Seems generally useful, and I would move it to dot/Util. Others OK with this?
Jonathan Olson [6:13 PM]
hah, I have equalsEpsilon as a function on most dot types, but don't have it for basic numbers. Feel free to add it
Jesse Greenberg [6:14 PM]
Cool, call it equalsEpsilon in Util?
Jonathan Olson [6:15 PM]
Sure, sounds good. (Should we rename them in general to isApproxEquals? Might be easier to find/understand)
Jesse Greenberg [6:17 PM]
I don't think it is worth a rename, my first search would be "equal" and I would fine equalsEpsilon that way
Ill add it to Util.
Done with the above commits.
This seems like it could be generally useful. For #398.