You mean:

*var *pence: integer;
pounds: currency;
strval: string;
*begin*
pence := 650;
pounds := pence / 100.0;
strval := currtostr(pounds);


2012/9/26 Richard Mace <[email protected]>

> Hi All,
> I am having a bit of a mind block!
> 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"?
>
> Thanks in advance
>
> Richard
>
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>


-- 
Atenciosamente,
Alexsander da Rosa
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to