java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.math.Log10

@BoxBIF @BoxMember(type=NUMERIC) public class Log10 extends BIF
  • Constructor Details

    • Log10

      public Log10()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Description copied from class: BIF
      This is overridden by the concrete to provide the actual BIF implementation
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked
      arguments - The arguments to the BIF
      Returns:
      The result of the invocation
    • log10

      public static BigDecimal log10(BigDecimal value, MathContext mc)
      Computes the logarithm of a BigDecimal to base 10 using Newton's method.
      Parameters:
      value - The BigDecimal value to compute the logarithm for.
      mc - The MathContext to control the precision.
      Returns:
      The logarithm to base 10 of the value.