public static class MathArithTypeEnum.MultiplyFloat extends Object implements MathArithTypeEnum.Computer
Constructor and Description |
---|
MultiplyFloat() |
Modifier and Type | Method and Description |
---|---|
CodegenExpression |
codegen(CodegenContext context,
CodegenExpressionRef left,
CodegenExpressionRef right,
Class ltype,
Class rtype) |
Number |
compute(Number d1,
Number d2)
Computes using the 2 numbers a result number.
|
public Number compute(Number d1, Number d2)
MathArithTypeEnum.Computer
compute
in interface MathArithTypeEnum.Computer
d1
- is the first numberd2
- is the second numberpublic CodegenExpression codegen(CodegenContext context, CodegenExpressionRef left, CodegenExpressionRef right, Class ltype, Class rtype)
codegen
in interface MathArithTypeEnum.Computer