Express

as a fraction.`D.toFixed( 1 )`

`D`

The number

is in the tenths place, so we have `T``cardinal( T )` tenths.

`Cardinal( T )` tenths can be written as

.`fraction( T, 10 )`

Express

as a fraction.`D.toFixed( 2 )`

`D`

The number

is in the tenths place, so we have `T``cardinal( T )` tenths.

`Cardinal( T )` tenths can be written as

.`fraction( T, 10 )`

The number

is in the hundredths place, so we have `H``cardinal( H )` hundredths.

`Cardinal( H )` hundredths can be written as

.`fraction( H, 100 )`

Add the two parts together.

`fraction( T, 10 )` + `fraction( H, 100 )`

`= `

`fraction( T * 10, 100 )` + `fraction( H, 100 )`

`= `

`fraction( T * 10 + H, 100 )`

You can also skip a few steps by making a fraction with

as the numerator and `floor( D * 100 )``100`

(because the decimal extends to the hundredths place) as the denominator.

`fraction( T * 10 + H, 100 )`