Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dumbed out on a string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00547498
Message ID:
00547509
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
John,

I think you need to specify number of decimals, this is the last line of the help file for str():

If nDecimalPlaces isn’t included, the number of decimal places defaults to zero.

Hugo

>i don't know if i left my brain at home this morning, but a simple thing is eluding me...
>
>x=21.22
>?x
>and i get 21.22
>?str(x)
>and i get 21
>
>wut happened to the decimals?
>
>tia - john
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform