Generator.Equals icon indicating copy to clipboard operation
Generator.Equals copied to clipboard

Implementation of an attribute for properties with System.Double Type to indicate the level of precision?

Open marlond18 opened this issue 3 years ago • 4 comments

marlond18 avatar Apr 01 '21 15:04 marlond18

That's interesting and definitely could be added for floating number types!

diegofrata avatar Apr 01 '21 16:04 diegofrata

Could probably call it PrecisionEquality

diegofrata avatar Apr 01 '21 16:04 diegofrata

Version 2.2.0 now supports the attribute CustomEquality, which can be used to bridge any specific case not built into the library, including comparing doubles.

I will leave this issue open however, because I think this should be implemented at some point.

diegofrata avatar Jun 03 '21 13:06 diegofrata