description | title | ms.date | ms.assetid |
---|---|---|---|
Learn more about: Numeric and Comparison Operators |
Numeric and Comparison Operators |
03/30/2017 |
25b4a26a-06f2-4f80-87a9-76705ed46197 |
Arithmetic and comparison operators work as expected in the common language runtime (CLR) except as follows:
-
SQL does not support the modulus operator on floating-point numbers.
-
SQL does not support unchecked arithmetic.
-
Increment and decrement operators cause side-effects when you use them in expressions that cannot be replicated in SQL and are, therefore, not supported.
[!INCLUDEvbtecdlinq] supports the following operators.
-
Basic arithmetic operators:
-
+
-
-
(subtraction) -
*
-
/
-
Visual Basic integer division (
\
) -
%
(Visual BasicMod
) -
<<
-
>>
-
-
(unary negation)
-
-
Basic comparison operators:
-
Visual Basic
=
and C#==
-
Visual Basic
<>
and C#!=
-
Visual Basic
Is/IsNot
-
<
-
<=
-
>
-
>=
-