Fill in the blank.
\large{N1}
____ \large{N2}
SOLUTION
<
>
=
Fill in the blank.
\large{N1TRAILING1}
____
\large{N2TRAILING2}
SOLUTION
<
>
=
\large{<}
means "less than".\large{>}
means "greater than".
N1TRAILING1 = DIGITS1[0] + \dfrac{DIGITS1[1]}{10}
+ \dfrac{DIGITS1[2]}{100} + \dfrac{DIGITS1[3]}{1000}
\phantom{N1TRAILING1} = \dfrac{1000 * DIGITS1[0]}{1000} + \dfrac{100 * DIGITS1[1]}{1000}
+ \dfrac{10 * DIGITS1[2]}{1000} + \dfrac{DIGITS1[3]}{1000}
\phantom{N1TRAILING1} = \dfrac{1000 * DIGITS1[0]
+ 100 * DIGITS1[1] + 10 * DIGITS1[2] + DIGITS1[3]}{1000}
\phantom{N1TRAILING1} = \dfrac{D1}{1000}
N2TRAILING2 = DIGITS2[0] + \dfrac{DIGITS2[1]}{10}
+ \dfrac{DIGITS2[2]}{100} + \dfrac{DIGITS2[3]}{1000}
\phantom{N2TRAILING2} = \dfrac{1000 * DIGITS2[0]}{1000} + \dfrac{100 * DIGITS2[1]}{1000}
+ \dfrac{10 * DIGITS2[2]}{1000} + \dfrac{DIGITS2[3]}{1000}
\phantom{N2TRAILING2} = \dfrac{1000 * DIGITS2[0]
+ 100 * DIGITS2[1] + 10 * DIGITS2[2] + DIGITS2[3]}{1000}
\phantom{N2TRAILING2} = \dfrac{D2}{1000}
D1
thousandths is more than D2
thousandths.
D1
thousandths is less than D2
thousandths.
D1
thousandths is equal to D2
thousandths.
We can also line up the decimal points and compare the digits.
Both numbers have the same digit in the plural_form(decimalPlaceNames[i], 2) place, so we have to check the next digit.
Both numbers have the same digit in the final place, so the two numbers are the same.
In the plural_form(decimalPlaceNames[i], 2) place,
N1
has a higher value digit than N2
.
In the plural_form(decimalPlaceNames[i], 2) place,
N2
has a higher value digit than N1
.
Therefore \large{N1 > N2}
.
Therefore \large{N1 < N2}
.
Therefore \large{N1 = N2}
.