[]
Serializable
, Comparable<OperatorKind>
, Constable
Enum.EnumDesc<E extends Enum<E>>
,
operator.static OperatorKind
forValue(int value)
int
getValue()
static OperatorKind
static OperatorKind[]
values()
The + operator has the primary purpose of adding two numbers.
This operator is defined only for double
operands, and it alwaysnarrows its operands to double
.
Syntax:
expression1 + expression2
or +expression2
Parts:
expression1
: Optional. Any numeric or string expression.
expression2
: Required. Any numeric or string expression.
Returns the difference between two numeric expressions or the negative value of a numeric expression.
Syntax:
expression1 - expression2
or -expression2
Parts:
expression1
: Optional. Any numeric or string expression.
expression2
: Required. Any numeric or string expression.
Multiplies two numbers.
Syntax:
expression1 * expression2
Parts:
expression1
: Required. Any numeric or string expression.
expression2
: Required. Any numeric or string expression.
Divides two numbers and returns a floating-point result, including any remainder.
The QUOTIENT
function returns the integer quotient, which drops theremainder.
Syntax:
expression1 / expression2
Parts:
expression1
: Required. Any numeric or string expression.
expression2
: Required. Any numeric or string expression.
Raises a number to the power of another number, always as a double
value.
Syntax:
number ^ exponent
Parts:
number
: Required. Any numeric or string expression.
exponent
: Required. Any numeric or string expression.
Divides a number by 100.
Syntax:
expression1%
Parts:
expression1
: Required. Any numeric or string expression.
Concatenation operators join multiple strings into a single string. The & operator is defined only for string
operands, and it always widensits operands to string
.
Syntax:
expression1 & expression2
Parts:
expression1
: Required. Any expression with a data type that widens to String.
expression2
: Required. Any expression with a data type that widens to String.
The range operator gives a range of cells within start point and end point reference cells.
Syntax:
range1:range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression.
,
operator.
The union operator combines two or more than two references into a single reference.
Syntax:
range1,range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression.
The intersection operator gives reference to those cells which are common in two range arguments.
Syntax:
range1 range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression.
Refers to a range of cells spilled from the specific cell.
Syntax:
expression#
Parts:
expression
: Required. Any cell reference expression.
@expression
expression
: Required. Any range or function call expression.
The equality operator compares two expressions to determine whether or not they are equal.
Syntax:
expression1 = expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
The inequality operator compares two expressions to determine whether they are not equal.
Syntax:
expression1 <> expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
The less than operator compares two expressions to determine whether the left side is less than the right side.
Syntax:
expression1 < expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
The less than or equal operator compares two expressions to determine whether the left side is less than or equal to the right side.
Syntax:
expression1 <= expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
The greater than operator compares two expressions to determine whether the left side is greater than the right side.
Syntax:
expression1 > expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
The greater than operator compares two expressions to determine whether the left side is greater than or equal to the right side.
Syntax:
expression1 >= expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null