sorry about not putting the whole code...
well ive already inserted the pow() function but when i input something like
5 ^ 3 the answer results to 124
5 ^ 2 is 24
anybody whom i can pm the whole code? ^_^
Printable View
sorry about not putting the whole code...
well ive already inserted the pow() function but when i input something like
5 ^ 3 the answer results to 124
5 ^ 2 is 24
anybody whom i can pm the whole code? ^_^
What's the point of PM's? They are PERSONAL, which means that no one else can see them. Which also means:
1. No one else will benefit.
2. No one else can correct any responses.
3. You will have to wait for THAT person to reply.
If you don't want someone to steal your code, then don't post it. But then do not expect help on it either.
Pow returns a floating point value. It is not 100% precise for all numbers in all ranges, so you will need to round it up when converting to an integer. Or you could write your own pow()-like functon, using integer math, which is precise within it's more limited range.
--
Mats