DbSimple icon indicating copy to clipboard operation
DbSimple copied to clipboard

define('DBSIMPLE_SKIP', log(0));

Open KarelWintersky opened this issue 6 years ago • 2 comments

define('DBSIMPLE_SKIP', log(0));

Log(0)? Seriously?

KarelWintersky avatar Nov 03 '18 02:11 KarelWintersky

Absolutely. This was the simplest way to get NaN floating point value in PHP.

On Fri, Nov 2, 2018 at 19:10 Karel Wintersky [email protected] wrote:

define('DBSIMPLE_SKIP', log(0));

Log(0)? Seriously?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DmitryKoterov/DbSimple/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEAax_riX4en0iBZj8HCeSV7f3vE6eQks5urPsQgaJpZM4YMlsX .

dimikot avatar Nov 03 '18 03:11 dimikot

Why floating point NaN? Why not a 1, or 0, or MAX_INT ?

KarelWintersky avatar Nov 03 '18 10:11 KarelWintersky