title: C# IFormatable ToString("0.0000")
body: <p>I have class and I want to reproduce the functionality associated with <code>ToString("0.0000")</code> as well as some other numerical formatting stuff.  How can this be done? </p>