Decimal

Résolu
jerry6510 Messages postés 19 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 14 mars 2007 - 8 nov. 2006 à 17:07
drikce06 Messages postés 2236 Date d'inscription lundi 29 mai 2006 Statut Membre Dernière intervention 29 mai 2008 - 8 nov. 2006 à 17:27
comment limiter a 2 chiffre après la virgule !!!

4 réponses

jrivet Messages postés 7392 Date d'inscription mercredi 23 avril 2003 Statut Membre Dernière intervention 6 avril 2012 60
8 nov. 2006 à 17:11
Salut,

MsgBox Format("125.3659", "##.##")

@+: Ju£i?n
Pensez: Réponse acceptée
3
Molenn Messages postés 797 Date d'inscription mardi 7 juin 2005 Statut Membre Dernière intervention 23 février 2011 7
8 nov. 2006 à 17:10
A mon avis, tout est dans l'aide de la fonction Format( )

Molenn
0
cboulas Messages postés 2641 Date d'inscription mercredi 2 juin 2004 Statut Membre Dernière intervention 8 janvier 2014 16
8 nov. 2006 à 17:20
TaVariable.ToString("#0.00")










 Chris...
Web : Firstruner
0
drikce06 Messages postés 2236 Date d'inscription lundi 29 mai 2006 Statut Membre Dernière intervention 29 mai 2008 10
8 nov. 2006 à 17:27
Ou sion:



Dim
a

As



Single






Dim
b

As



Single






Dim
c

As



Single

a = System.Convert.ToSingle(TextBox1.Text)


b = System.Convert.ToSingle(TextBox2.Text)


c = a * b


c = Math.Round(c, 2)



ps: tu peux valider l'autre topic aussi

 Drikce 06
0
Rejoignez-nous