Floatlog

From SA-MP Wiki

Jump to: navigation, search

floatlog

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Description:

This function allows you to get the logarithm of a float value.


Parameters:
(Float:value, Float:base)
Float:valueThe value of which to get the logarithm.
Float:baseThe logarithm base.


Return Values:

The logarithm as a float value.


Example Usage:

public OnGameModeInit()
{
    printf("The logarithm of 15.0 with the base 10.0 is %f", floatlog( 15.0, 10.0 ));
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • floatsqroot: Calculate the square root of a floating point value.
  • floatpower: Raises given value to a power of exponent.
Personal tools
Navigation
Toolbox