
www.Usenet.com
| <-- __Chronological__ | <-- __Thread__ |
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__ |