Class Log
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.math.Log
@BoxBIF(description="Calculate the natural logarithm of a number")
@BoxMember(type=NUMERIC)
public class Log
extends BIF
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, ArgumentsScope arguments) Returns the natural logarithm of a number.static BigDecimallog(BigDecimal value, MathContext mc) Computes the natural logarithm of a BigDecimal using Newton's method.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
Log
public Log()Constructor
-
-
Method Details
-
_invoke
Returns the natural logarithm of a number. -
log
Computes the natural logarithm of a BigDecimal using Newton's method.- Parameters:
value- The BigDecimal value to compute the logarithm for.mc- The MathContext to control the precision.- Returns:
- The natural logarithm of the value.
-