Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert number to a char string
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Convert number to a char string
Divers
Thread ID:
01672170
Message ID:
01672170
Vues:
99
Hi,

I am trying to create a generic way to convert any number to a string. Here are some examples, of the number and how they should be as a string:
2.4       ->  "2.4"
.00       -> ".00"
500.32337   -> "500.32337"
8.342    -> "8.342"
I tried TRANSFORM() but the second parameter has to match the number of decimal digits.

Any suggestions?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform