Class NumberOperationContributor
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
org.eclipse.epsilon.eol.execute.operations.contributors.NumberOperationContributor
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
cachedMethodNames
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTarget
-
Constructor Details
-
NumberOperationContributor
public NumberOperationContributor()
-
-
Method Details
-
contributesTo
- Specified by:
contributesTo
in classOperationContributor
-
getTarget
- Overrides:
getTarget
in classOperationContributor
- Returns:
- The
OperationContributor.target
field.
-
factorial
public long factorial()n!. Note that only values less than or equal to 20 are supported.- Returns:
- Factorial of self.
- Since:
- 1.6
-
min
-
max
-
floor
public int floor() -
pow
-
ceiling
public int ceiling() -
round
public int round() -
ln
public double ln() -
log
public double log() -
log10
public double log10() -
abs
-
asReal
public double asReal() -
asDouble
public double asDouble() -
asFloat
public float asFloat() -
asInteger
public int asInteger() -
asLong
public long asLong()
-