|
|
|
|
|
by Ennea
14 hours ago
|
|
Hm, perhaps, but I am confused now. In the article, you're comparing log_a x < log_b x, but now you're comparing log_a x > log_b x in your comment. To make it clear, I am running this code: https://bpa.st/ZCKA Which prints, for LuaJIT:
true
true
false And for Lua 5.5:
true
false
false |
|
The topic of the post is that in PHP and Lua (without LuaJIT), sometimes this inequality doesn't hold, and instead we get `log_a x > log_b x`, which is very incorrect and cannot be explained away by rounding.
Does that make more sense?