Difference between revisions of "Log - Math"

42 bytes added ,  20:39, 13 July 2023
m
 
Line 23: Line 23:


<source lang="papyrus">
<source lang="papyrus">
; there's no function that returns simple logarithm, but you can get it yourself
;/ there's no function that returns a simple logarithm, but you can easily calculate it
; 0.434294 = logarithm of Euler's number (2.71828)
  by multiplying this function's return value by 0.434294 (logarithm of Euler's number) /;


float logNum = (Math.Log(5.89)) * 0.434294 ; logNum ≈ 0.770114 (keep in mind, the result is not completely accurate)
float logNum = (Math.Log(5.89)) * 0.434294 ; logNum ≈ 0.770114 (keep in mind, the result is not 100% accurate)
</source>
</source>


67

edits