Why is there a a property in Javascript that returns the approximate square root of 2. Isn't Math.sqrt(2) enough? There is also a property that returns the square root of 0.5.
I'm wondering out of pure curiosity.
This is a constant used in many math equations. Since it is a constant it doesn't need to be calculated each time it's used, and it has high precision.
Convience factor, as seen here, it is actually a widely used constant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With