I copied your statements to my "write with DDE and do formatting" test program and it work as I expected. If my numbers are less that 1000 nothing looks different except there are no decimal places printed.
You can confirm the function by examination of the menu Format Cells>Number
I don't think delete.format does what you what. If you want to remove formatting from cell(s) use CLEAR(2)