Not very elegant, but your integer will be handled. You can add additional functionality to meet your business needs.
using System;
public class Test
{
public static void Main()
{
decimal? decimalValue = Convert.ToDecimal(87);
string value = ((decimal)(decimalValue / 1000)).ToString("0.000");
value = value.Substring(1, 4);
Console.WriteLine(value.Replace(".", string.Empty));
}
}