## Featured Replies in this Discussion

Well, it is just the same :

Math.Pow(value, 33) = Math.Pow(value, 10) * Math.Pow(value, 10)* Math.Pow(value, 10) * Math.Pow(value, 3);

Because 10 + 10 + 10 + 3 = 33

If you like to refresh or study some rules on powers,look here

If you're wanting to do what I *think* you want to do; you want to split your power by units of ten and the remainder?

If so let's take your 33 as an example;

```
public void Method()
{
int value = 6;
int power = 33;
int iterations = (int)Math.Floor(power / 10); // We want to lose the decimal point
int remainder = power % 10; // This will return 3. As it returns the remainder of a division operation
Double result = 1; // Important as we're going to muliply our results together. Starting from 0 would yield 0. Also, we're dealing with "power" so big numbers may result. In these cases, you need to use exponent notation.
for(int currentIteration = 0;currentIteration < iterations; currentIteration++)
{
result = result * Math.Pow(value, 10);
}
result = result * Math.Pow(value, remainder);
Console.WriteLine("Result is: {0}", result);
Console.WriteLine("Actual : {0}", Math.Pow(value, power));
Console.ReadLine();
}
```

It's important to note, that you won't be able to display this in normal integer format for large numbers as the structures simply aren't big enough even with unsigned 64-bit addressing (unless you converted it to a string...)

Hi csss, the only way to retrieve the numeric value is to use the `BigInteger`

class. This will let you have a theoretically infinitely large number.

However, the caveat to this is that everything you use will be limited to a minimum of .NET 4 framework. If you cannot use .NET 4 or above I'm afraid you're out of luck.

Additionally, rather than use `Math.Pow`

you will need to use `BigInteger.Pow`

but this should work for you.

If you need to code your own biginteger look at ddanbe's last post here

It seems though we keep going in circles, csss gets good suggestions, and rather than implementing them, asks the same question a different way and gets the same suggestions.