14.9.3 Decimal comparison operators
来源:互联网 发布:互联网商业模式知乎 编辑:程序博客网 时间:2024/06/05 01:14
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.
- 14.9.3 Decimal comparison operators
- 14.9.1 Integer comparison operators
- 14.9.5 Enumeration comparison operators
- 14.9.2 Floating-point comparison operators
- Bash Commands - Comparison Operators
- How to override comparison operators in Python
- Smallest of three integers without comparison operators
- Compare two ints without using comparison operators
- 17.9.3 Conversion operators
- Operators
- Operators
- Operators
- Operators
- Comparison between overloading operators in member function and in friend function
- Decimal
- Decimal
- Decimal
- Decimal
- ASP分页函数
- 关于session的详细解释
- 14.9 Relational & type-testing operators
- 14.9.1 Integer comparison operators
- 14.9.2 Floating-point comparison operators
- 14.9.3 Decimal comparison operators
- 14.9.4 Boolean equality operators
- 14.9.5 Enumeration comparison operators
- 14.9.6 Reference type equality operators
- 14.9.7 String equality operators
- 14.9.8 Delegate equality operators
- 14.9.9 The is operator
- 14.9.10 The as operator
- 14.10 Logical operators