title: How can I convert function result?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1251869/how-to-format-a-number-with-padding-in-erlang">How to format a number with padding in Erlang</a>  </p>
  </blockquote>
  
  
  
  <p>I developed this function :</p>
  
  <pre><code>check() -&gt;
    case get_val(Text, H) of
      {ok, {Montant}}       -&gt; io:format("~s", [Montant]);
      {error, pas_echeance} -&gt; io:format("erreur")
    end.
  </code></pre>
  
  <p>this function displayed Montant, this is an example of Montant :45</p>
  
  <p>My goal is to convert this value "45" (which denotes <a href="http://en.wikipedia.org/wiki/Tunisian_dinar" rel="nofollow noreferrer">Tunisian dinars</a>) in the "45000" form (so I would have Tunisian millime -- each dinar consist of 1000 millimes).</p>