Skip to content

Commit 693e728

Browse files
pkulikovBillWagner
authored andcommitted
Decimal.xml: modulus -> remainder (dotnet#21)
1 parent b2e166d commit 693e728

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

xml/System/Decimal.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,16 +3763,15 @@
37633763
<format type="text/markdown"><![CDATA[
37643764
37653765
## Remarks
3766-
The <xref:System.Decimal.op_Modulus%2A> method defines the operation of the modulus operator for <xref:System.Decimal> values. It enables code such as the following:
3766+
The <xref:System.Decimal.op_Modulus%2A> operator defines the remainder operation that returns the remainder resulting from dividing two specified <xref:System.Decimal> values. It enables code such as the following:
37673767
37683768
[!code-csharp[System.Decimal.Operators#19](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.decimal.operators/cs/modulus1.cs#19)]
37693769
[!code-vb[System.Decimal.Operators#19](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.decimal.operators/vb/modulus1.vb#19)]
37703770
3771-
If the language you're using doesn't support custom operators, call the <xref:System.Decimal.Remainder%2A> method instead.
3771+
The sign of the value returned by the remainder operation depends on the sign of dividend. If dividend is positive, the remainder operation returns a positive result; if it is negative, the remainder operation returns a negative result.
37723772
3773-
The sign of the value return by the modulus operation depends on the sign of dividend. If dividend is positive, the modulus operation returns a positive result; if it is negative, the modulus operation returns a negative result.
3774-
3775-
The equivalent method for this operator is <xref:System.Decimal.Remainder%28System.Decimal%2CSystem.Decimal%29?displayProperty=nameWithType>]]></format>
3773+
The equivalent method for this operator is <xref:System.Decimal.Remainder%28System.Decimal%2CSystem.Decimal%29?displayProperty=nameWithType>. If the language you're using doesn't support custom operators, call the <xref:System.Decimal.Remainder%2A> method instead.
3774+
]]></format>
37763775
</remarks>
37773776
<exception cref="T:System.DivideByZeroException">
37783777
<paramref name="d2" /> is <see langword="zero" />.</exception>
@@ -6984,4 +6983,4 @@
69846983
</Docs>
69856984
</Member>
69866985
</Members>
6987-
</Type>
6986+
</Type>

0 commit comments

Comments
 (0)