<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Thanks for the Reply Tom, It in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67086#M19691</link>
    <description>Thanks for the Reply Tom, It was helpful. I made few changes in the code.</description>
    <pubDate>Mon, 20 Mar 2017 17:05:00 GMT</pubDate>
    <dc:creator>ParthibanAyyap2</dc:creator>
    <dc:date>2017-03-20T17:05:00Z</dc:date>
    <item>
      <title>Converstion of Numbers to Words</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67084#M19689</link>
      <description>Hi All,

I need to create this Object for converting amount in words. Which can manipulate with decimal setting, Doller (any currency) Prefix. Does any one has the code or object.</description>
      <pubDate>Thu, 09 Mar 2017 14:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67084#M19689</guid>
      <dc:creator>ParthibanAyyap2</dc:creator>
      <dc:date>2017-03-09T14:42:00Z</dc:date>
    </item>
    <item>
      <title>Hi Parthiban759,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67085#M19690</link>
      <description>Hi Parthiban759,
If i've understood correctly you want to correctly the solution below should work (I'm C#, so its not VB as per other solution above):
========================
GLOBAL CODE
========================
public static string NumberToWords(int number)
{
    if (number == 0)
        return ""zero"";
    if (number &amp;lt; 0)
        return ""minus "" + NumberToWords(Math.Abs(number));
    string words = """";
    if ((number / 1000000) &amp;gt; 0)
    {
        words += NumberToWords(number / 1000000) + "" million "";
        number %= 1000000;
    }
    if ((number / 1000) &amp;gt; 0)
    {
        words += NumberToWords(number / 1000) + "" thousand "";
        number %= 1000;
    }
    if ((number / 100) &amp;gt; 0)
    {
        words += NumberToWords(number / 100) + "" hundred "";
        number %= 100;
    }
    if (number &amp;gt; 0)
    {
        if (words != """")
            words += ""and "";
        var unitsMap = new[] { ""zero"", ""one"", ""two"", ""three"", ""four"", ""five"", ""six"", ""seven"", ""eight"", ""nine"", ""ten"", ""eleven"", ""twelve"", ""thirteen"", ""fourteen"", ""fifteen"", ""sixteen"", ""seventeen"", ""eighteen"", ""nineteen"" };
        var tensMap = new[] { ""zero"", ""ten"", ""twenty"", ""thirty"", ""forty"", ""fifty"", ""sixty"", ""seventy"", ""eighty"", ""ninety"" };
        if (number &amp;lt; 20)
            words += unitsMap[number];
        else
        {
            words += tensMap[number / 10];
            if ((number % 10) &amp;gt; 0)
                words += ""-"" + unitsMap[number % 10];
        }
    }
    return words;
}
===============
CODE STAGE
===============
myOutputText = NumberToWords(121591561);
Or whatever number you want
Thanks
Tom</description>
      <pubDate>Fri, 17 Mar 2017 22:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67085#M19690</guid>
      <dc:creator>TomBlackburn1</dc:creator>
      <dc:date>2017-03-17T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Thanks for the Reply Tom, It</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67086#M19691</link>
      <description>Thanks for the Reply Tom, It was helpful. I made few changes in the code.</description>
      <pubDate>Mon, 20 Mar 2017 17:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converstion-of-Numbers-to-Words/m-p/67086#M19691</guid>
      <dc:creator>ParthibanAyyap2</dc:creator>
      <dc:date>2017-03-20T17:05:00Z</dc:date>
    </item>
  </channel>
</rss>

