title: Including "and" word as a separator in ToWords function
body: <p>I am using the ToWords function in Crystal Report to convert figures to words. The amounts may sometimes contain decimal values as well, therefore I have included an IF condition to evaluate it include the decimals section only when necessary. </p>
  
  <p>However I also need to add a "and" words to separate the amount in words so that it is easier to read. </p>
  
  <p>For Eg. 38426 should be displayed as "Thirty eight thousand two hundred and forty six". At the moment this reads as "Thirty eight thousand two hundred forty six".</p>
  
  <p>Here is the code that I have in place at the moment.</p>
  
  <pre><code>    NUMBERVAR amount    := 38246;
      NUMBERVAR decimals  := (Round(amount,2) - Int(amount)) * 100;
      STRINGVAR words     := 'Rupees';
  
      words := words &amp; ' ' &amp; TOWORDS(amount,0);
  
      IF(decimals &gt; 0) THEN words := words &amp; ' and ' &amp;TOWORDS(decimals,0) &amp; ' cents';
  
      words := PROPERCASE(words &amp; ' only');
  </code></pre>