mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
LibJS: Fix Math.SQRT1_2
The value of Math.SQRT1_2 was zero as we were dividing two integers.
This commit is contained in:
parent
500f6d9e3a
commit
2f775a925b
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue