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

Calculate a number to the nth power

I have a form that contains a field with a number I want to convert to a nth power. How do I write a VB to do this?

Thanks in advance for your help.
0
CatDaddy2003
Asked:
CatDaddy2003
2 Solutions
 
Alan WarrenApplications DeveloperCommented:
10^10 is ten to the tenth power

Alan
0
 
danielmarkusCommented:
public function MyPower(MyNumber as double, ThePower as double) as Double


MyPower = MyNumber ^ ThePower

end function
0
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

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