pow function in Visual Basic

Posted on 2005-05-06
Last Modified: 2008-01-09
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?

Question by:suwanee
    LVL 23

    Expert Comment

    This is with regards to vbscript but im sure visual basic will have the same or simmilliar functions :
    LVL 23

    Expert Comment

    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 :)
    LVL 85

    Accepted Solution

    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

    Author Comment

    Thanks to both of you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    Suggested Solutions

    Title # Comments Views Activity
    sameEnds challenge 3 80
    Specific format 21 105
    firstChar challenge 13 55
    delphi parse string to params 3 44
    This is an explanation of a simple data model to help parse a JSON feed
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now