# Log (Real)

Grammar — Log(x, x2)
FlagsFunction

Returns the log of a number.

# Arguments

  • fixed — Value
  • fixed — Base

Returns — fixed

fixed libNtve_gf_Log(fixed lp_x, fixed lp_x2);

Category: Math / Arithmetic

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:3606

    UnitBehaviorRemove(lp_unit, lp_behavior, c_unitBehaviorCountAll);
    if ((lp_method == libCOMI_ge_UnitBuffMultiplierMethod_Exponential) && (lp_multiplierAmount != 1.0)) {
        lv_multiplierStack = libNtve_gf_Log(lp_multiplierAmount, lp_baseValue);
        CatalogFieldValueSet(c_gameCatalogBehavior, lp_behavior, "MinPoints", UnitGetOwner(lp_unit), IntToString(CeilingI(lv_multiplierStack)));
        UnitBehaviorAddPlayer(lp_unit, lp_behavior, UnitGetOwner(lp_unit), 1);