Unofficial LSL Reference

[[functions:lllog10]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:lllog10 [2014-12-09 16:46 SLT]
sei Add nav
functions:lllog10 [2015-02-04 08:15 SLT] (current)
sei style
Line 11: Line 11:
  
 === arg === === arg ===
-The float value whose logarithm in base 10 is to be calculated.+The $lty[floatvalue whose logarithm in base 10 is to be calculated.
  
 ===== Return value ===== ===== Return value =====
  
-Returns a [[types/float]] with the logarithm in base 10 of the argument.+Returns a $lty[float] with the logarithm in base 10 of the argument.
  
 ===== Notes ===== ===== Notes =====
  
   * In order to make sense, the argument must be greater than 0.0; a value of 0.0 or less yields 0.0.   * In order to make sense, the argument must be greater than 0.0; a value of 0.0 or less yields 0.0.
-  * The function returns ​**Infinity** ​if the input is **Infinity**, and 0.0 if the input is **-Infinity** ​or **NaN**+  * The function returns ​$pinf if the input is $pinf, and 0.0 if the input is $minf or $nan
-  * To calculate the natural logarithm, ​[[llLog]] can be used. +  * To calculate the natural logarithm, ​$lfn[llLog] can be used. 
-    * To calculate the logarithm in any other base, there is a recipe in the Notes section of [[llLog]]. +    * To calculate the logarithm in any other base, there is a recipe in the Notes section of $lfn[llLog]. 
-  * There is no built-in inverse of this function. To raise 10 to a power, you can use ''​llPow(10,​ power)''​. But if you want to raise 10 to an integer constant, better use scientific notation, for example ''​1e32''​ means 10 to the 32nd power (10<​sup>​32</​sup>​). See [[types/float]] for a description of scientific notation.+  * There is no built-in inverse of this function. To raise 10 to a power, you can use ''​llPow(10,​ power)''​. But if you want to raise 10 to an integer constant, better use scientific notation, for example ''​1e32''​ means 10 to the 32nd power (10<​sup>​32</​sup>​). See $lty[float] for a description of scientific notation.
  
 ===== Short examples ===== ===== Short examples =====
Line 38: Line 38:
 ===== See also ===== ===== See also =====
  
-  * [[llLog]] to calculate the natural logarithm. +  * $lfn[llLog] to calculate the natural logarithm. 
-  * [[llPow]] to raise a number to a power (also called antilogarithm). +  * $lfn[llPow] to raise a number to a power (also called antilogarithm). 
-  * [[types/float]] type and associated caveats and limitations.+  * $lty[float] type and associated caveats and limitations.