Number constants

by Ricardo Fernández Serrata

Version 1 (September 7, 2021)

Download (4 downloads)

Math and Number (float) constants other than Pi. I didn't include square roots and logarithms, because they're generally not used.

To calculate any logarithm: log(x) / log(b)

Any root: pow(x, 1 / n)

exp(1) != Math["E"]
I 📋CP JS' Math.E because it's more accurate.

ℹ:
docs.oracle.com/javase/7/docs/api/java/lang/Double.html

developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number