Difference between revisions of "Log - Math"

289 bytes added ,  16:33, 13 July 2023
m (Undo revision 23248 by Ingvion (talk))
Tag: Undo
Line 20: Line 20:
<source lang="papyrus">
<source lang="papyrus">
float lnNum = Math.Log(5,89) ; lnNum ≈ 1,773256
float lnNum = Math.Log(5,89) ; lnNum ≈ 1,773256
</source>
<source lang="papyrus">
; there's no function that returns simple logarithm, but you can get it yourself
; log(2.71828) = 0,434294 (Euler's number = 2.71828)
float logNum = (Math.Log(5,89)) * 0,434294 ; logNum ≈ 0,770114 (keep in mind, the result is not completely accurate)
</source>
</source>


67

edits