use of org.ballerinalang.model.values.BFloat in project ballerina by ballerina-lang.
the class Atan2 method execute.
public void execute(Context ctx) {
double a = ctx.getFloatArgument(0);
double b = ctx.getFloatArgument(1);
ctx.setReturnValues(new BFloat(Math.atan2(a, b)));
}
use of org.ballerinalang.model.values.BFloat in project ballerina by ballerina-lang.
the class Cbrt method execute.
public void execute(Context ctx) {
double value = ctx.getFloatArgument(0);
ctx.setReturnValues(new BFloat(Math.cbrt(value)));
}
use of org.ballerinalang.model.values.BFloat in project ballerina by ballerina-lang.
the class Cosh method execute.
public void execute(Context ctx) {
double value = ctx.getFloatArgument(0);
ctx.setReturnValues(new BFloat(Math.cosh(value)));
}
use of org.ballerinalang.model.values.BFloat in project ballerina by ballerina-lang.
the class Scalb method execute.
public void execute(Context ctx) {
double a = ctx.getFloatArgument(0);
long b = ctx.getIntArgument(0);
int intVal = ((Long) b).intValue();
ctx.setReturnValues(new BFloat(Math.scalb(a, intVal)));
}
use of org.ballerinalang.model.values.BFloat in project ballerina by ballerina-lang.
the class AbsFloat method execute.
public void execute(Context ctx) {
double value = ctx.getFloatArgument(0);
ctx.setReturnValues(new BFloat(Math.abs(value)));
}
Aggregations