CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    usa
    Posts
    4

    matrix multiplication in vb

    please tell me a code for multiplication of 3x3 and 3x1 matrix.
    and how to set output format till 2 places after deimal.
    like 4.56, 7.32.



  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: matrix multiplication in vb

    For your first question, tell us how far you have proceeded and where you stumped.


    For your second question, the MSDN writes:

    The following example uses the Round function to round a number to two decimal places:

    Dim MyVar, pi
    pi = 3.14159
    MyVar = Round(pi, 2) ' MyVar contains 3.14.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured