- This wiki is out of date, use the continuation of this wiki instead
Log
From FenixWiki
(Difference between revisions)
Revision as of 14:14, 29 July 2008 (edit) 85.144.194.29 (Talk) (New article: Log.dll: log()) ← Previous diff |
Revision as of 14:19, 29 July 2008 (edit) (undo) Rincewind (Talk | contribs) (→Example) Next diff → |
||
Line 46: | Line 46: | ||
End | End | ||
</pre> | </pre> | ||
- | Used in example: [[import]], [[write_float]](), [[key]](), [[log | + | Used in example: [[import]], [[write_float]](), [[key]](), [[log]]() |
Revision as of 14:19, 29 July 2008
Contents |
Definition
FLOAT log ( <FLOAT n> , <FLOAT b> )
Returns a logarithm of number n with base b.
FLOAT log ( <FLOAT n> )
Returns a logarithm of number n with base 10.
Parameters
FLOAT n | - The number that will be used for the logarithm. |
FLOAT base | - The base that will be used for the logarithm. |
Returns
FLOAT : The logarithm of n.
Example
Import "log.dll"; Global float logarithm=0.0; Process main() Begin write_float(0,160,100,4,&logarithm); While(not(key(_esc))) If (key(_1)) logarithm=log(1000,9); End If (key(_2)) logarithm=log(1000); End Frame; End End
Used in example: import, write_float(), key(), log()
Categories: Functions | Logdll | Dll