Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting numbers to letters
Message
 
À
17/07/2000 00:03:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00393097
Message ID:
00393098
Vues:
16
>Hi all...
>I'm trying to write some code that converts a currency amount to letters for invoicing (in Spanish) I take an amount from a field and the first thing to do is isolate the cents. I do this as:
>cents=amount-int(amount). Problem is I got a number like 0.45.
>How to get rid of the 0. and convert this to a string to be used in the final expression?

Ulises,
ncents = amount-INT(amount)
ccents = RIGHT(TRANSFORM(ncents),3)
HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform