DigiNews

Tech Watch by Johan Denoyer

← Back to articles

log is non-monotonous in PHP and Lua

Quality: 8/10 Relevance: 9/10

Summary

The article investigates why log with different bases behaves non-monotonically in PHP and Lua, despite mathematical expectations. It explains that the inconsistency stems from how languages implement logarithms and base changes, often mixing direct base-specific functions with general log calculations, leading to edge-case discrepancies. It also discusses potential remedies and calls for more consistent handling of log bases across languages.

🚀 Service construit par Johan Denoyer