Raise a number to a power?
-
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...
-
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...
It's much easier than it is in C++. Just use:
result = number **^** exponent
value = 10 ^ x
RageInTheMachine9532
-
It's much easier than it is in C++. Just use:
result = number **^** exponent
value = 10 ^ x
RageInTheMachine9532
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...