<font face="arial, helvetica, sans-serif">Alex,</font><div><font face="arial, helvetica, sans-serif">Thanks, that's exactly what I was trying to do!</font></div><div><font face="arial, helvetica, sans-serif">I was using pounds := pence Div 100</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Cheers<br></font><br><div class="gmail_quote">On 26 September 2012 13:37, Alexsander Rosa <span dir="ltr"><<a href="mailto:alexsander.rosa@gmail.com" target="_blank">alexsander.rosa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You mean:<br><br><b>var </b>pence: integer;<br>pounds: currency;<br>strval: string;<br><b>begin</b><br>pence := 650;<br>
pounds := pence / 100.0;<br>strval := currtostr(pounds);<br><br><br><div class="gmail_quote">2012/9/26 Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><font face="arial, helvetica, sans-serif">Hi All,</font><div><font face="arial, helvetica, sans-serif">I am having a bit of a mind block!</font></div>
<div><font face="arial, helvetica, sans-serif">What would be the code to convert an Integer of pence e.g. 650 into a value of pounds e.g. 6.50 and then convert to a string value of "6.50"?</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks in advance</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Richard<br>
</font><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;clear:both"><img height="1" width="1"></div>
<br>
</div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">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></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Atenciosamente,<br>Alexsander da Rosa<br><br><br>
</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>