Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rounded values
Message
 
À
30/12/1998 06:41:20
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentine
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00171475
Message ID:
00171478
Vues:
31
Hi Marcelo,

>I´ve this expression :ALLT(STR(ROUND(VAL(TRANSFORM(n_val,'99999.99')),2))).The result is a number without decimals,but I want that decimals appears rounded like this : Eg.:12.93 = 12.95,2450.22 = 2450.20 and so on.How can I do this ?

What about

nRoundedValue = ROUND(12.95*20,0)/20
cValue = ALLTRIM(TRANSFORM(nRoundedValue,"99999.99"))

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform