Perhaps not the most efficient solution but that would do:<br><br>// p is the integer, f.e. 208<br>IntToStr(p div 100) + '.' + IntToStr((p mod 100) div 10) + IntToStr(p mod 10)<br><br><br><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Dec 12, 2012 at 12:23 PM, Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="arial,helvetica,sans-serif">Hi All,</font><div><font face="arial, helvetica, sans-serif">Got a simple question that has stumped me, which tends to happen if I don't do development for a couple of months.</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">How's the best way of converting an integer number "208" (that is pence) into a string value that is in pounds (2.08)</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks as always in advance.</font></div><span class="HOEnZb"><font color="#888888"><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div>
<font face="arial, helvetica, sans-serif">Richard</font></div>
</font></span><br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br></div>