Sub test2()
MsgBox tronque2(15.3659879)
MsgBox tronque2("15,3659879")
MsgBox tronque2(15)
End Sub
Function tronque2(x As String) As Double ' x est en string
tronque2 = CDbl(Mid(x, 1, IIf(InStr(x, ",") > 0, InStr(1, x, ",") + 3, Len(x))))
End Function