Public Functions for Comparing
Posted: Dec 28 2014
Is there any reason I should use any of the value comparison methods
PublicFunctions.DoubleEquals()
PublicFunctions.DoubleGreater()
PublicFunctions.DoubleGreaterEquals()
PublicFunctions.DoubleLess()
PublicFunctions.DoubleLessEquals()
instead of C# operators: ==, >, >=, <, <=
I suppose the only reason for this redundancy is to get compiler verification on the parameters, i.e. lval and rval both have to be of type 'Double' or you will get a compiler error. Is that correct, or are there other reasons for it?
Thanks!
PublicFunctions.DoubleEquals()
PublicFunctions.DoubleGreater()
PublicFunctions.DoubleGreaterEquals()
PublicFunctions.DoubleLess()
PublicFunctions.DoubleLessEquals()
instead of C# operators: ==, >, >=, <, <=
I suppose the only reason for this redundancy is to get compiler verification on the parameters, i.e. lval and rval both have to be of type 'Double' or you will get a compiler error. Is that correct, or are there other reasons for it?
Thanks!