Formatting decimal values in C# based on custom format
<p>I'm facing an issue in my project while formating decimal values based on custom format.<br>
The format set is </p>

<pre><code>&gt;&gt;&gt;,&gt;&gt;&gt;,&gt;&gt;&gt;,&gt;&gt;&gt;,&gt;&gt;9.99 
</code></pre>

<p>which is taken from DB.</p>

<p>And in C# code we were initially replacing '>' with '#' and '9' with '0'.<br>
It works fine for values like 25.65 etc but for values like 5.00 it was showing 05.00.<br>
So what we did was replaced '>' with '#' and '9' with '#' which solved our issue.<br>
But this lead to a new issue again. It works fine for values like 25.65,5.00.<br>
But for values 0.00 it shows .00.
Can anyone help on this?</p>
