![]() The data type of the result is the smallest data type that can hold all possible values that result from division with the data types of number1 and number2. If either number1 or number2 is a floating-point value, the floating-point remainder of the division is returned. ![]() ' The example displays the following output: For example: Public Module ExampleĬonsole.WriteLine($" 8 Mod 3 = ") The result is always in the range (- number2, number2), exclusive. The result of a Mod operation retains the sign of the dividend, number1, and so it may be positive or negative. ![]() NET Framework op_Modulus operator, and the underlying rem IL instruction all perform a remainder operation. There is a difference between remainder and modulus in mathematics, with different results for negative numbers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |