Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

13 lines
854 B
XML

<?xml version="1.0"?>
<clause number="14.9.3" title="Decimal comparison operators">
<paragraph>The predefined <keyword>decimal</keyword> comparison operators are: <code_example><![CDATA[
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);
]]></code_example></paragraph>
<paragraph>Each of these operators compares the numeric values of the two <keyword>decimal</keyword> operands and returns a <keyword>bool</keyword> value that indicates whether the particular relation is true or false. Each <keyword>decimal</keyword> comparison is equivalent to using the corresponding relational or equality operator of type System.Decimal. </paragraph>
</clause>