***************************************************************************
        ARBITRARY-PRECISION SIGNED INTEGER FRACTION ARITHMETIC DEMO

===========================================================================
GIVEN THE TWO INTEGER FRACTION STRINGS BELOW, THE FOUR BASIC ARITHMETIC
OPERATIONS (ADD, SUB, MUL and DIV) ARE PERFORMED ON THEM.  REFRESH THIS
PAGE FOR NEW RANDOMIZED EXAMPLE FRACTIONS.

A/B = (-16490992 / 8201)
and
C/D = (7437 / 18153000)

===========================================================================
ADD: (A/B) + (C/D)  =  (A*D + B*C) / (B*D)  =  E / F

= (-16490992 / 8201) + (7437 / 18153000)

Raw Fraction     = -299360916785163 / 148872753000
GCD              = 3
Reduced Fraction = -99786972261721 / 49624251000

Plain decimal value truncated at 50 decimals without rounding =
-2010.85094990594417233622327115828911956776939565294396

===========================================================================
SUBTRACT: (A/B) − (C/D)  =  (A*D − B*C) / (B*D)  =  E / F

= (-16490992 / 8201) - (7437 / 18153000)

Raw Fraction     = -299361038766837 / 148872753000
GCD              = 3
Reduced Fraction = -99787012922279 / 49624251000

Plain decimal value truncated at 50 decimals without rounding =
-2010.85176927464356086704462300095975252100026658336868

===========================================================================
MULTIPLY: (A/B)*(C/D)  =  (A*C) / (B*D)  =  E / F

= (-16490992 / 8201) * (7437 / 18153000)

Raw Fraction     = -122643507504 / 148872753000
GCD              = 48408
Reduced Fraction = -2533538 / 3075375

Plain decimal value truncated at 50 decimals without rounding =
-0.82381433158557899443157338535950900296711783115880

===========================================================================
DIVIDE: (A/B) / (C/D)  =  (A*D) / (B*C)  =  E / F

= (-16490992 / 8201) / (7437 / 18153000)

Raw Fraction     = -299360977776000 / 60990837
GCD              = 3
Reduced Fraction = -99786992592000 / 20330279

Plain decimal value truncated at 50 decimals without rounding =
-4908294.30289667938152742517699830877874327253452842432708

===========================================================================