randRange(0, 1) ? randRange(100, 999) : randRange(1000, 9999) NUMERATOR / 10000

Express localeToFixed(D, 4) as a fraction.

D

localeToFixed(D, 4) can be represented as follows.

= 0 + fraction(floor(NUMERATOR / 1000 % 10), 10) + fraction(floor(NUMERATOR / 100 % 10), 100) + fraction(floor(NUMERATOR / 10 % 10), 1000) + fraction(floor(NUMERATOR % 10), 10000)

= 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)