Re: How does one raise an integer to a power?
- From: "clintonG" <csgallagher@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Jul 2006 11:33:59 -0500
Which is where it should be.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"David Anton" <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F48F9C0C-77D9-432D-A7B8-2E30920528D9@xxxxxxxxxxxxxxxx
Unlike VB, C# has no exponentiation operator built into the language. You
have to use the Math class (Math.Pow).
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C#/VB to C++ converter
C# Code Metrics: Quick metrics for C#
"Steve Kershaw" wrote:
This is stupid!!!!
I have looked everywhere (in books, google, online....) to find out how
to raise a number to a power and I can't find it!!!
For example:
given x = 10
y = x ^ 2;
y would then be 100 (10 squared is 100).
Why can't I find such a basic operation!?
Steve
.
- References:
- How does one raise an integer to a power?
- From: Steve Kershaw
- How does one raise an integer to a power?
- Prev by Date: Alternating row colors on an "ordinary" table in ASP.NET 2
- Next by Date: Re: Global.asax not firing
- Previous by thread: Re: How does one raise an integer to a power?
- Next by thread: Securing ASP.NET Web Apps
- Index(es):
Relevant Pages
|