<div dir="ltr">Hi,<br><br>I think he wasn't born to do this, but...<br>Is this correct, being the first on the right and the second on the left of format?<br>And instead the strange results of the last two Print (1086.10 and 6.186.1)?<br><br>[code]<br>Public Sub Main()<br><br>  Dim s As String = "The result of multiplication is "<br>  Dim e As Integer = String.Len(s)<br>  Dim sResult As String = CStr(myResult(12.3, 7))<br>  Dim i As Integer = String.Len(sResult)<br><br>  ' don't takes format into account ---><br>  ' The result of multiplication is 6,10<br>  Print String.PadRight(s, (e + i), Format(sResult, ",#.00"))<br>  ' OK                              ---><br>  ' The result of multiplication is 86,10<br>  Print String.PadRight(s, (e + i + 1), Format(sResult, ",#.00"))<br>  ' takes format into account       ---><br>  ' The result of multiplication is 86,10<br>  Print String.PadRight(s, (e + i + 1), Format(sResult, "$,#.00"))<br>  ' OK                              ---><br>  ' The result of multiplication is € 86,10<br>  Print String.PadRight(s, (e + i + 3), Format(sResult, "$,#.00"))<br>  ' --------------------------------------------------------------<br>  ' ???<br>  Print String.PadRight(s, (e + i + 3), Format(sResult, ",#.00"))<br>  ' ???<br>  Print String.PadRight(s, (e + i + 3), sResult)<br><br>End<br><br>Private Function myResult(a As Float, b As Float) As Float<br><br>  Return a * b<br><br>End<br>[/code]<br><br>Regards<br>Gianluigi</div>