int operator *(int x, int y); uint operator *(uint x, uint y); long operator *(long x, long y); ulong operator *(ulong x, ulong y);4 In a checked context, if the product is outside the range of the result type, a System.OverflowException is thrown. 5 In an unchecked context, overflows are not reported and any significant high-order bits outside the range of the result type are discarded.
float operator *(float x, float y); double operator *(double x, double y);7 The product is computed according to the rules of IEEE 754 arithmetic. 8 The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaN's. 9 In the table, x and y are positive finite values. z is the result of x * y. 10 If the result is too large for the destination type, z is infinity. 11 If the result is too small for the destination type, z is zero.
* | +y | -y | +0 | -0 | +∞ | -∞ | NaN |
---|---|---|---|---|---|---|---|
+x | +z | -z | +0 | -0 | +∞ | -∞ | NaN |
-x | -z | +z | -0 | +0 | -∞ | +∞ | NaN |
+0 | +0 | -0 | +0 | -0 | NaN | NaN | NaN |
-0 | -0 | +0 | -0 | +0 | NaN | NaN | NaN |
+∞ | +∞ | -∞ | NaN | NaN | +∞ | -∞ | NaN |
-∞ | -∞ | +∞ | NaN | NaN | -∞ | +∞ | NaN |
NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
decimal operator *(decimal x, decimal y);13 If the resulting value is too large to represent in the decimal format, a System.OverflowException is thrown. 14 If the result value is too small to represent in the decimal format, the result is zero. 15 The scale of the result, before any rounding, is the sum of the scales of the two operands. 16 Decimal multiplication is equivalent to using the multiplication operator of type System.Decimal.
| |
Jagger Software Ltd | |
Company # 4070126 | |
VAT # 762 5213 42 |