mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-03-01 11:35:54 +08:00
Correct the calculation in Math.hypot().
This commit is contained in:
parent
e569eaa8a6
commit
28212f70ff
@ -219,7 +219,7 @@ public final class TMath extends TObject {
|
||||
}
|
||||
|
||||
public static double hypot(double x, double y) {
|
||||
return x * x + y * y;
|
||||
return sqrt(x * x + y * y);
|
||||
}
|
||||
|
||||
public static double expm1(double x) {
|
||||
|
Loading…
Reference in New Issue
Block a user