Name
Pow Function
Class
System.Math
Syntax
result = Math.Pow(x
,y
)
-
x,
y
(required; Double)
Return Value
A Double that is x
(the base) raised to
the power y
(the exponent)
Description
This is a generalized exponential function; it returns the result of a number raised to a specified power.
Rules at a Glance
This is a Shared member, so it can be used without creating any objects.
VB.NET/VB 6 Differences
The Pow function is new to the .NET Framework.
See Also
Get VB.NET Language in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.