warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
floatlog
warning
This function starts with a lowercase letter.
Description
This function allows you to get the logarithm of a float value.
Name | Description |
---|---|
Float:value | The value of which to get the logarithm. |
Float:base | The logarithm base. |
Returns
The logarithm as a float value.
Examples
public OnGameModeInit()
{
printf("The logarithm of 15.0 with the base 10.0 is %.1f", floatlog(15.0, 10.0));
return 1;
}
Related Functions
- floatsqroot: Calculate the square root of a floating point value.
- floatpower: Raises given value to a power of exponent.