Re: How does one raise an integer to a power?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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




.



Relevant Pages

  • Re: VB.net - C# converter
    ... Does your C# to VB.NET converter handle anonymous ... David Anton wrote: ... Try the various demo/trial editions of the available converters (including ... C# Code Metrics: Quick metrics for C# ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How come this doesnt cause an endless loop?
    ... David Anton ... Instant VB: C# to VB converter ... Public ReadOnly Property TestProp() As Boolean ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB.Net to C# translation
    ... Instant VB: C# to VB converter ... "David Anton" wrote: ... using the VisualBasic namespace. ... comes with Visual Studio.Net so that it has two drop-down lists, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: What do you call nested If...Then search loops?
    ... David Anton wrote: ... Instant VB: C# to VB converter ... Instant Python: VB to Python converter ... only the desired items can fall all the way through. ...
    (microsoft.public.dotnet.languages.vb)
  • RE: out of curiosity
    ... "David Anton" wrote: ... > Be aware that IIf is a method and as such all arguments are evaluated when ... > Instant VB: C# to VB.NET Converter ... >> hey all, ...
    (microsoft.public.dotnet.framework.aspnet)