Question: how to subtract a whole number from a decimal number?
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.