- This wiki is out of date, use the continuation of this wiki instead
DLL:Log.dll
From FenixWiki
(Difference between revisions)
Revision as of 20:40, 28 July 2008 (edit) 85.144.194.29 (Talk) (→Example - 8 space tabs to 4 space tabs) ← Previous diff |
Current revision (13:54, 29 July 2008) (edit) (undo) 85.144.194.29 (Talk) (→Download) |
||
(One intermediate revision not shown.) | |||
Line 14: | Line 14: | ||
Global | Global | ||
- | float logarithm= | + | float logarithm=0.0; |
Process main() | Process main() | ||
Line 21: | Line 21: | ||
While(not(key(_esc))) | While(not(key(_esc))) | ||
- | If (key(_1)) logarithm=log( | + | If (key(_1)) logarithm=log(1000,9); End |
- | If (key(_2)) logarithm= | + | If (key(_2)) logarithm=log(1000); End |
- | If (key(_3)) logarithm= | + | If (key(_3)) logarithm=log2(1024); End |
+ | If (key(_4)) logarithm=ln(13.37); End | ||
Frame; | Frame; | ||
Line 29: | Line 30: | ||
End | End | ||
</pre> | </pre> | ||
- | Used in example: [[import]], [[write_float]](), [[key]](), [[log]](), [[ | + | Used in example: [[import]], [[write_float]](), [[key]](), [[log]](), [[log2]](), [[ln]]() |
== Download == | == Download == | ||
- | * [[Media:log(Fenix0. | + | * [[Media:log(Fenix0.92a).zip|Log.dll for Fenix 0.92a and 0.93]] (Source & example included) |
- | + | ||
== Documentation == | == Documentation == |
Current revision
Contents |
[edit] Definition
Log.dll is a DLL with logarithmic functions, which aren't built into Fenix by default.
[edit] 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 If (key(_3)) logarithm=log2(1024); End If (key(_4)) logarithm=ln(13.37); End Frame; End End
Used in example: import, write_float(), key(), log(), log2(), ln()
[edit] Download
- Log.dll for Fenix 0.92a and 0.93 (Source & example included)
[edit] Documentation
DLL's | |
• Explosion.DLL • GUI.DLL • Image.DLL • LCD.DLL • Log.dll • MPEG.DLL • Mixer.DLL • Network.DLL • TTF.DLL • |
Categories: Dll | Logdll