The correct way to write 5 18/1000 as a decimal is
5.018
5 is a whole number so the decimal would go after the 5.