Unable to pass variable to log()
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/LogTest()
var/n = 3393
src << log(n,2)// Outputs 0.0852635
src << log(3393,2)// Outputs 11.7283
Expected Results:
Each output to be the same value.
Actual Results:
Outputs display different values.
Does the problem occur:
Every time? Or how often? Every time.
In other games? Not sure.
In other user accounts? Not sure.
On other computers? Not sure.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I actually upgrade from the stable release (508.1299) in hopes of fixing this error. Not sure about other versions.
Is it mixing up the arguments somewhere?
edit:
The reference says log(X,Y) is the logarithm of Y, base X. The correct answer in this case is 0.0852635, so it's calls with only constant arguments compiling backwards, by the looks of it.