Question: how to subtract a whole number by a decimal?
Answer: Write down the two numbers, one under the other, with the decimal points lined up.
Add zeros so the numbers have the same length.
Then subtract normally, remembering to put the decimal point in the answer.