Réponse acceptée !
Bonjour,
var1 = "20"
var2 = "20,1"
MsgBox FormatNumber(var1,2) &vbCr& FormatNumber(var2,2) 'retourne 20,00 et 20,10
var3 = "12,514546"
MsgBox Round(var3,3) 'retourne 12,515
MsgBox CInt(var3) 'retourne 13
MsgBox Fix(var3) 'retourne 12
MsgBox FormatNumber(var3,3) 'retourne 12,515
jean-marc