Class Arithmetic
java.lang.Object
edu.tufts.hrilab.action.operators.Arithmetic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
The assign operator as implemented here doesn't work well for uninitialized arguments (null) as there's no way to make sure that the value we return is of the correct type.static int
decrement
(int n) static double
static int
increment
(int n) static double
static double
static long
static double
-
Constructor Details
-
Arithmetic
public Arithmetic()
-
-
Method Details
-
add
The assign operator as implemented here doesn't work well for uninitialized arguments (null) as there's no way to make sure that the value we return is of the correct type. Example, this method will assign (string) "3" to an integer ActionBinding this is currently null... -
increment
public static int increment(int n) -
subtract
-
decrement
public static int decrement(int n) -
multiply
-
divide
-
modulus
-
round
-