How to take zero from the decimal part?
<p>I have a senario where I am converting numbers to words and I have suceeded in it, but I found one scenario where it's not working. If I enter the number as "<strong>10</strong>", it displays "<strong>ten</strong>". Also, "<strong>10.2</strong>" will display "<strong>ten point two</strong>". However, if I enter "<strong>10.0</strong>" it will not display as "<strong>ten point zero</strong>".</p>

<p>For seperating the whole number part from the decimal part I usually split the number by '<strong>.</strong>', but if I enter a number like "<strong>10.0</strong>", the string array will contain only "<strong>10</strong>" and not the "<strong>0</strong>"</p>

<p>The spitting part which I have done is given below:</p>

<pre><code>string[] number = Convert.ToString(context.NumberToTranslate).Split('.');
</code></pre>
