i want to split the power value
ex:11 pow 10 = (11 pow 7)(11 pow 3) like that i want to split the value
please help me
csss
0
Newbie Poster
Recommended Answers
Jump to PostSomething like this?
static void Main(string[] args) { int value = 11; int power = 8; Console.WriteLine(Math.Pow(value, power)); Console.WriteLine(Math.Pow(value, 2)*Math.Pow(value, 6)); Console.ReadKey(); }
Jump to PostWell, 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,
Jump to PostIf 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.
All 11 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
csss
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Ketsuekiame
860
Master Poster
Featured Poster
csss
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
tinstaafl
1,176
Posting Maven
Ketsuekiame
860
Master Poster
Featured Poster
tinstaafl
1,176
Posting Maven
Ketsuekiame
commented:
Thanks. Good reading :)
+8
csss
0
Newbie Poster
tinstaafl
1,176
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.