• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2131
  • Last Modified:

pow function in Visual Basic

Hey Guru,

In VC++, there is a function: pow function (computes x raised to the power of y).
example: pow(10, 3)=1000.

But, in VB there is no similar function. It has the Exp function (e raised the power). Did I missed it there is no this kinds of function at all?

  • 2
1 Solution
Shane Russell2nd Line Desktop SupportCommented:
This is with regards to vbscript but im sure visual basic will have the same or simmilliar functions :

Shane Russell2nd Line Desktop SupportCommented:
I am going to subscribe to this question once I post this with regards to one useful site that goes through visual basic maths functions :)


Hopefully that helps, other then that I will watch this thread to hopefully learn something :)
Mike TomlinsonMiddle School Assistant TeacherCommented:
There isn't a function for it but it does have an operator.  It is the ^ and is in both links provided by gecko.

For example:

    Debug.Print 10^3 ' should be 1000
suwaneeAuthor Commented:
Thanks to both of you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now