mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-23 10:42:49 +00:00
committed by
Jindra Petřík
parent
eacadf7cea
commit
34ae22d837
@@ -328,7 +328,7 @@ public class Rational extends Number {
|
||||
}
|
||||
}
|
||||
|
||||
// Work with longs if overflow can not occur
|
||||
// Work with longs if overflow cannot occur
|
||||
if (abs(this.num) < Integer.MAX_VALUE
|
||||
&& abs(this.den) < Integer.MAX_VALUE
|
||||
&& abs(that.num) < Integer.MAX_VALUE
|
||||
@@ -476,7 +476,7 @@ public class Rational extends Number {
|
||||
* number</li> <li>As a double number</li> <li>As an integer/integer
|
||||
* rational number</li>
|
||||
*
|
||||
* @throws NumberFormatException if str can not be parsed.
|
||||
* @throws NumberFormatException if str cannot be parsed.
|
||||
*/
|
||||
public static Rational valueOf(String str) {
|
||||
int p = str.indexOf('/');
|
||||
|
||||
Reference in New Issue
Block a user