Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
35.61 to 3561
Message
De
26/07/2001 11:05:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00535735
Message ID:
00535746
Vues:
12
>Suppouse I have a value 35.61
>
> How can I print it to paper using a report so
> that is printed as 3561
>
> The point should not appear on the paper
>
>
> Thanks

Depending on your needs (always two decimals, or variable):
? 35.61 * 100

Or:

? alltrim(strtran(padr(MyValue,20), ".", ""))

or (more flexible):

? alltrim(strtran(padr(MyValue,20), set("point"), ""))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform