io.sarl.lang.core.scoping.extensions.numbers.arithmetic
Class NumberArithmeticExtensions
final class NumberArithmeticExtensions
extends java.lang.Object
Provide static operators for numbers of type Number.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.7
See:
"https://github.com/eclipse/xtext-extras/issues/186"
Action Summary
Modifier and type Action and description
static double operator_divide(Number,long)
The binary divide operator.
static double operator_divide(Number,byte)
The binary divide operator.
static double operator_divide(Number,int)
The binary divide operator.
static double operator_divide(Number,short)
The binary divide operator.
static double operator_divide(Number,double)
The binary divide operator.
static double operator_divide(Number,float)
The binary divide operator.
static double operator_divide(Number,Number)
The binary divide operator.
static double operator_minus(Number)
The unary minus operator.
static double operator_minus(Number,long)
The binary minus operator.
static double operator_minus(Number,byte)
The binary minus operator.
static double operator_minus(Number,int)
The binary minus operator.
static double operator_minus(Number,short)
The binary minus operator.
static double operator_minus(Number,double)
The binary minus operator.
static double operator_minus(Number,float)
The binary minus operator.
static double operator_minus(Number,Number)
The binary minus operator.
static double operator_modulo(Number,long)
The binary modulo operator.
static double operator_modulo(Number,byte)
The binary modulo operator.
static double operator_modulo(Number,int)
The binary modulo operator.
static double operator_modulo(Number,short)
The binary modulo operator.
static double operator_modulo(Number,double)
The binary modulo operator.
static double operator_modulo(Number,float)
The binary modulo operator.
static double operator_modulo(Number,Number)
The binary modulo operator.
static double operator_multiply(Number,long)
The binary multiply operator.
static double operator_multiply(Number,byte)
The binary multiply operator.
static double operator_multiply(Number,int)
The binary multiply operator.
static double operator_multiply(Number,short)
The binary multiply operator.
static double operator_multiply(Number,double)
The binary multiply operator.
static double operator_multiply(Number,float)
The binary multiply operator.
static double operator_multiply(Number,Number)
The binary multiply operator.
static double operator_plus(Number,long)
The binary plus operator.
static double operator_plus(Number,byte)
The binary plus operator.
static double operator_plus(Number,int)
The binary plus operator.
static double operator_plus(Number,short)
The binary plus operator.
static double operator_plus(Number,double)
The binary plus operator.
static double operator_plus(Number,float)
The binary plus operator.
static double operator_plus(Number,Number)
The binary plus operator.
static double operator_power(Number,long)
The binary power operator.
static double operator_power(Number,byte)
The binary power operator.
static double operator_power(Number,int)
The binary power operator.
static double operator_power(Number,short)
The binary power operator.
static double operator_power(Number,double)
The binary power operator.
static double operator_power(Number,float)
The binary power operator.
static double operator_power(Number,Number)
The binary power operator.
Action Details
operator_divide(Number,long)
def operator_divide(Number,long) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,byte)
def operator_divide(Number,byte) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,int)
def operator_divide(Number,int) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,short)
def operator_divide(Number,short) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,double)
def operator_divide(Number,double) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,float)
def operator_divide(Number,float) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_divide(Number,Number)
def operator_divide(Number,Number) : double
The binary divide operator. This is the equivalent to the Java / operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left/right
operator_minus(Number)
def operator_minus(Number) : double
The unary minus operator. This is the equivalent to the Java's - function. This function is not null-safe.
Parameters:
number - a number.
Returns:
-number
operator_minus(Number,long)
def operator_minus(Number,long) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,byte)
def operator_minus(Number,byte) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,int)
def operator_minus(Number,int) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,short)
def operator_minus(Number,short) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,double)
def operator_minus(Number,double) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,float)
def operator_minus(Number,float) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_minus(Number,Number)
def operator_minus(Number,Number) : double
The binary minus operator. This is the equivalent to the Java - operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left-right
operator_modulo(Number,long)
def operator_modulo(Number,long) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,byte)
def operator_modulo(Number,byte) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,int)
def operator_modulo(Number,int) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,short)
def operator_modulo(Number,short) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,double)
def operator_modulo(Number,double) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,float)
def operator_modulo(Number,float) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_modulo(Number,Number)
def operator_modulo(Number,Number) : double
The binary modulo operator. This is the equivalent to the Java % operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left%right
operator_multiply(Number,long)
def operator_multiply(Number,long) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,byte)
def operator_multiply(Number,byte) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,int)
def operator_multiply(Number,int) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,short)
def operator_multiply(Number,short) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,double)
def operator_multiply(Number,double) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,float)
def operator_multiply(Number,float) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_multiply(Number,Number)
def operator_multiply(Number,Number) : double
The binary multiply operator. This is the equivalent to the Java * operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left*right
operator_plus(Number,long)
def operator_plus(Number,long) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,byte)
def operator_plus(Number,byte) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,int)
def operator_plus(Number,int) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,short)
def operator_plus(Number,short) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,double)
def operator_plus(Number,double) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,float)
def operator_plus(Number,float) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_plus(Number,Number)
def operator_plus(Number,Number) : double
The binary plus operator. This is the equivalent to the Java + operator. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
left+right
operator_power(Number,long)
def operator_power(Number,long) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,byte)
def operator_power(Number,byte) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,int)
def operator_power(Number,int) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,short)
def operator_power(Number,short) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,double)
def operator_power(Number,double) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,float)
def operator_power(Number,float) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function. This function is not null-safe.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)
operator_power(Number,Number)
def operator_power(Number,Number) : double
The binary power operator. This is the equivalent to the Java's Math.pow() function.
Parameters:
left - a number.
right - a number.
Returns:
Math::pow(left, right)