floatlog
Description:
Function floatlog allows you to get the logarithm of a float value.
This function name starts with a lowercase letter. |
Parameters:
(Float:value, Float:base)
float | value | The value of which to get the logarithm. |
float | base | The logarithm base. |
Return Values:
The logarithm as a float value.
Examples:
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.
- float: Converts an integer into a float.
- floatstr: Converts a string to a float.
- floatmul: Multiplies two floats with each other.
- floatdiv: Divide one float by another one.
- floatadd: Adds two floats together.
- floatsub: Subtracts one float from another.
- floatfract: Get the fractional part of a float.
- floatround: Round a floating point number to an integer value.
- floatcmp: Compare float values to each other, to validate the comparison.
- floatsqroot: Calculates the square root of given value.
- floatpower: Raises the given value to the power of the exponent.
- floatsin: Get the sine from a given angle.
- floatcos: Get the cosine from a given angle.
- floattan: Get the tangent from a given angle.
- floatabs: Returns the absolute value of float.