mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fixes the Math.ulp method
This commit is contained in:
parent
45d0f56047
commit
a930e5f4dc
|
@ -152,11 +152,11 @@ public final class TMath extends TObject {
|
|||
}
|
||||
|
||||
public static double ulp(double d) {
|
||||
return pow(1, -getExponent(d) - 52);
|
||||
return pow(2, getExponent(d) - 52);
|
||||
}
|
||||
|
||||
public static float ulp(float d) {
|
||||
return (float)pow(1, -getExponent(d) - 23);
|
||||
return (float)pow(2, getExponent(d) - 23);
|
||||
}
|
||||
|
||||
public static double signum(double d) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user