Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__     <-- __Thread__    

units to float?



Hi There,

What are the, best, functions to use for doing pounds/pence (or dollars/cents)
conversions and displays?

I want to have my program either have 115 (115 pence) sprintf()`ed to display
£1.15. Also is it easier to use some sort of float routine in the first place
(i.e variable=float(1.15) or whatever and then sprintf()? A code example
would be nice ;)

Thanks in advance.

Regards

John



<-- __Chronological__     <-- __Thread__    


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.