Forum: Ruby on Rails Calculate Compound interest

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
77a811c8d7af8f0460d63a3747c85dc7?d=identicon&s=25 Ankit Parekh (ankitparekh)
on 2009-02-20 09:17

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?

2a31ce1f0273b12896b4049bf3eb4ce8?d=identicon&s=25 Shiv N Gautam (Guest)
on 2009-02-20 09:25
(Received via mailing list)
pow(x,y) can be represented as x**y

Shiv N Gautam

On Fri, Feb 20, 2009 at 1:47 PM, Ankit Parekh <> wrote:

> instead of that?
> Thanks
> --
> Posted via
> >


Bill Watterson  - "There is not enough time to do all the nothing we
want to
This topic is locked and can not be replied to.