randRange(0, 1) ? randRange(100, 999) : randRange(1000, 9999) localeToFixed((NUMERATOR / 10000), 4) getGCD(round(D * 10000) , 10000)

Express D as a fraction.

D

D can be represented as follows.

= 0 + fraction(D.substr(2, 1) , 10) + fraction(D.substr(3, 1) , 100) + fraction(D.substr(4, 1), 1000) + fraction(D.substr(5, 1), 10000)

= fraction(NUMERATOR, 10000)

You can also skip a few steps by making a fraction with NUMERATOR as the numerator and 10000 (because the decimal extends to the ten thousandths place) as the denominator.

fraction(NUMERATOR, 10000)

randRange(1, 19) randRangeExclude(1, 99, [10 , 20 , 30 , 40 , 50 , 60 , 70 , 80 , 90]) localeToFixed((W + D / 100), 2)

Express FIXED as a mixed number.

W + D / 100

FIXED can be represented as follows:

= W + fraction(floor(D / 10), 10) + fraction(D % 10, 100)

= W + fraction(D, 100)