org.apache.commons.lang3.math.Fraction.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2k
d ? ? ? ? ? ? ? ?
?? ? ?
? ? ?????? ??? ? ?
?
A?????
???????
?
) ?
!"
#$
%
&
'
(
)*
)+
),
)-
).
)/
)0
)123
4
56
N7
N8
N9
N:;<=
>
?
@
A B C D E F G H I J KLM serialVersionUID J
ConstantValue ;v??xB ZERO (Lorg/apache/commons/lang3/math/Fraction; ONE ONE_HALF ONE_THIRD
TWO_THIRDS ONE_QUARTER TWO_QUARTERS THREE_QUARTERS ONE_FIFTH
TWO_FIFTHS THREE_FIFTHS FOUR_FIFTHS numerator I denominator hashCode toString Ljava/lang/String; toProperString (II)V Code LineNumberTable LocalVariableTable this getFraction ,(II)Lorg/apache/commons/lang3/math/Fraction;
StackMapTable -(III)Lorg/apache/commons/lang3/math/Fraction; numeratorValue whole getReducedFraction gcd +(D)Lorg/apache/commons/lang3/math/Fraction; value D sign wholeNumber numer0 denom0 numer1 denom1 numer2 denom2 a1 a2 x1 x2 y1 y2 delta1 delta2 fraction i <(Ljava/lang/String;)Lorg/apache/commons/lang3/math/Fraction; numer denom str pos getNumerator ()I getDenominator getProperNumerator getProperWhole intValue longValue ()J
floatValue ()F doubleValue ()D reduce *()Lorg/apache/commons/lang3/math/Fraction; ? invert negate abs pow +(I)Lorg/apache/commons/lang3/math/Fraction; f power greatestCommonDivisor (II)I u v k t mulAndCheck x y m mulPosAndCheck addAndCheck s subAndCheck add R(Lorg/apache/commons/lang3/math/Fraction;)Lorg/apache/commons/lang3/math/Fraction; subtract addSub S(Lorg/apache/commons/lang3/math/Fraction;Z)Lorg/apache/commons/lang3/math/Fraction; uvp upv isAdd Z d1 Ljava/math/BigInteger; tmodd1 d2 wN
multiplyBy divideBy equals (Ljava/lang/Object;)Z obj Ljava/lang/Object; other compareTo +(Lorg/apache/commons/lang3/math/Fraction;)I first second ()Ljava/lang/String; properNumerator (Ljava/lang/Object;)I x0 ()V Signature RLjava/lang/Number;Ljava/lang/Comparable;
SourceFile
Fraction.java ? { y | } ~ } x y z y java/lang/ArithmeticException The denominator must not be zero O overflow: can't negate &org/apache/commons/lang3/math/Fraction ? $The denominator must not be negative "The numerator must not be negative /Numerator too large to represent as an Integer. k l ? ?P ?QRST ;The value must not be greater than Integer.MAX_VALUE or NaN $Unable to convert double to fraction ? ? "java/lang/IllegalArgumentException The string must not be nullUVWXY ? ?Z[\]^Z_ java/lang/NumberFormatException 4The fraction could not be parsed as the format X Y/Z ? ? ? ? ?W ? ? Unable to invert zero. overflow: can't negate numerator overflow: too large to negate ? ? m l ? ? ? ? ? ? overflow: gcd is 2^31
overflow: mul overflow: mulPos
overflow: add ? ? The fraction must not be null ? ? ? ? ? ? ? ?N`abc ?c ?cdc ? ?ecf ? ,overflow: numerator too large after multiply *The fraction to divide by must not be zero ? ? ? ? java/lang/StringBuilder ghihj | ? 0 1 -1 ? ? ? ? |_ ? ? n l o l p l q l r l s l t l u l v l w l java/lang/Number java/lang/Comparable java/math/BigInteger (Ljava/lang/String;)V java/lang/Math (D)D java/lang/Double isNaN (D)Z java/lang/String indexOf (I)I parseDouble (Ljava/lang/String;)D substring (II)Ljava/lang/String; java/lang/Integer parseInt (Ljava/lang/String;)I (I)Ljava/lang/String; valueOf (J)Ljava/math/BigInteger; multiply .(Ljava/math/BigInteger;)Ljava/math/BigInteger; mod divide bitLength (I)V append (I)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; 1 d e f g h i k l m l n l o l p l q l r l s l t l u l v l w l x y z y ? { y ? | } ? ~ } $ ? ? t *? *? *? *? *? *? ? ? | j n r } ~ ? ? l x y z y ? ? ? ? 8?
? Y? ??
?
?
? Y? ?t;t