1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00

LibJS: Use the new math constants

Instead of evaluating their values at runtime.
This commit is contained in:
Sergey Bugaev 2020-05-24 21:32:11 +03:00 committed by Andreas Kling
parent a449a0b977
commit 31359e3ad2

View file

@ -62,8 +62,8 @@ MathObject::MathObject()
put("LOG2E", Value(log2(M_E)), 0);
put("LOG10E", Value(log10(M_E)), 0);
put("PI", Value(M_PI), 0);
put("SQRT1_2", Value(::sqrt(1.0 / 2.0)), 0);
put("SQRT2", Value(::sqrt(2)), 0);
put("SQRT1_2", Value(M_SQRT1_2), 0);
put("SQRT2", Value(M_SQRT2), 0);
}
MathObject::~MathObject()