diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/MathObject.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/MathObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/MathObject.cpp b/Libraries/LibJS/Runtime/MathObject.cpp index 613f6cef8f..e1f0fae96e 100644 --- a/Libraries/LibJS/Runtime/MathObject.cpp +++ b/Libraries/LibJS/Runtime/MathObject.cpp @@ -49,7 +49,7 @@ MathObject::MathObject() put("LOG2E", Value(log2(M_E))); put("LOG10E", Value(log10(M_E))); put("PI", Value(M_PI)); - put("SQRT1_2", Value(::sqrt(1 / 2))); + put("SQRT1_2", Value(::sqrt(1.0 / 2.0))); put("SQRT2", Value(::sqrt(2))); } |