[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1993
  • 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?

Thanks.
0
suwanee
Asked:
suwanee
  • 2
1 Solution
 
gecko_au2003Commented:
This is with regards to vbscript but im sure visual basic will have the same or simmilliar functions :

http://www.w3schools.com/vbscript/vbscript_ref_functions.asp
0
 
gecko_au2003Commented:
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 :)

http://www.officecomputertraining.com/vbtutorial/tutpages/page17.asp

Hopefully that helps, other then that I will watch this thread to hopefully learn something :)
0
 
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
0
 
suwaneeAuthor Commented:
Thanks to both of you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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