Calculate Compound interest


#1

Hi

I want to calculate compound interest on monthly and daily basis. I am
doing this with the formula.

Now the question is wats the syntax for ^ in raise to since i want to do
something like A= p(1+R)^N

Now ^ symbol for raise to is not working. Let me know what should i do
instead of that?

Thanks


#2

pow(x,y) can be represented as x**y


Shiv N Gautam

On Fri, Feb 20, 2009 at 1:47 PM, Ankit P. <
removed_email_address@domain.invalid> wrote:

instead of that?

Thanks

Posted via http://www.ruby-forum.com/.

Bill Watterson - “There is not enough time to do all the nothing we
want to
do.”