Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounding up data that is converted to text
Message
De
08/03/2004 14:51:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
Rounding up data that is converted to text
Divers
Thread ID:
00884212
Message ID:
00884212
Vues:
49
I have data that is generated from calculations that for some reason is significant to two decimal places and I can't get rid of the decimal part.

numbervar nAnswer := 0;
stringvar sResult := '':

nAnswer := 22/7;
sResult := CSTR(TRUNCATE(nAnswer,0);

doesn't work, nor does Round.
the result displays on the report as 3.14 instead of 3.

Thanks
Jim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform