VB 2005 math functions

VB 2005 math functions

Anonymous
Not applicable
741 Views
2 Replies
Message 1 of 3

VB 2005 math functions

Anonymous
Not applicable
OK, I feel stupid having to ask this, but I cannot get VB 20005 Express to recognize common math functions like "round". Is there a reference I need to add? If so, which one and how do I do it? Thanks.
0 Likes
742 Views
2 Replies
Replies (2)
Message 2 of 3

nmunro
Collaborator
Collaborator
The Math namespace in the .NET framework contains all the math functions. Preface your function with Math. (note the period after Math).
You can optionally add Imports System.Math at the top of the code window (above everything except Option statements) to eliminate the need to type Math.

Neil

        


https://c3mcad.com

0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks! I had tried entering that command in the StandardAddInServer.vb tab along with the Imports.Inventor command but it didn't work. Putting it at the top of the module did.
0 Likes