Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Raise a number to a power?

Raise a number to a power?

Scheduled Pinned Locked Moved Visual Basic
c++toolsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roger Allen
    wrote on last edited by
    #1

    I may be dumb about this, but I have been unable to find the function to raise 10x in VB script! Anyone know the function I need? I have looked through the MSDN and not found a reference. I would have expeceted it to be something like: value = pow(10.0, x) but pow does not exist. You can tell I am a c++ coder floundering in the wonderful world of VB! Roger Allen - Sonork 100.10016 Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...

    D 1 Reply Last reply
    0
    • R Roger Allen

      I may be dumb about this, but I have been unable to find the function to raise 10x in VB script! Anyone know the function I need? I have looked through the MSDN and not found a reference. I would have expeceted it to be something like: value = pow(10.0, x) but pow does not exist. You can tell I am a c++ coder floundering in the wonderful world of VB! Roger Allen - Sonork 100.10016 Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's much easier than it is in C++. Just use:

      result = number **^** exponent
      

      value = 10 ^ x

      RageInTheMachine9532

      R 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It's much easier than it is in C++. Just use:

        result = number **^** exponent
        

        value = 10 ^ x

        RageInTheMachine9532

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        Thanks for that. I should have known it.... :doh: Roger Allen - Sonork 100.10016 Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups