The predefined decimal comparison operators are:
bool operator ==(decimal x, decimal y);
bool operator !=(decimal x, decimal y);
bool operator <(decimal x, decimal y);
bool operator >(decimal x, decimal y);
bool operator <=(decimal x, decimal y);
bool operator >=(decimal x, decimal y);
Each of these operators compares the numeric values of the two decimal
operands and returns a bool
value that indicates whether the particular relation is true or false. Each
decimal comparison is
equivalent to using the corresponding relational or equality operator of
type System.Decimal.
bool operator ==(decimal x, decimal y);
bool operator !=(decimal x, decimal y);
bool operator <(decimal x, decimal y);
bool operator >(decimal x, decimal y);
bool operator <=(decimal x, decimal y);
bool operator >=(decimal x, decimal y);
Each of these operators compares the numeric values of the two decimal
operands and returns a bool
value that indicates whether the particular relation is true or false. Each
decimal comparison is
equivalent to using the corresponding relational or equality operator of
type System.Decimal.
本文介绍了预定义的十进制比较运算符,包括等于、不等于、小于、大于、小于等于和大于等于。这些运算符用于比较两个十进制数的数值,并返回布尔值来指示特定的关系是否成立。
518

被折叠的 条评论
为什么被折叠?



