Attached Formula image to add in javascript
Attached Formula image to add in javascript
(OP)
Hello Guys,
I need some help. Attached is the formula image which I want to use in Javascript but I dont know how to do the superscript (n) in Javascript
Here is my code
<script>
function myFunction() {
var pmt;
var PV = 201508;
var i1 = 3.625;
var i2=3.625/100;
var i = i2/12;
var n= 360;
pmt = PV * i(1+ i)/(1 + i) - 1;
}
</script>
Can someone tell me how I can use the attached formula image in javascript.
Thanks
Raj
I need some help. Attached is the formula image which I want to use in Javascript but I dont know how to do the superscript (n) in Javascript
Here is my code
<script>
function myFunction() {
var pmt;
var PV = 201508;
var i1 = 3.625;
var i2=3.625/100;
var i = i2/12;
var n= 360;
pmt = PV * i(1+ i)/(1 + i) - 1;
}
</script>
Can someone tell me how I can use the attached formula image in javascript.
Thanks
Raj
RE: Attached Formula image to add in javascript
2 4 = 2 * 2 * 2 * 2
In javascript, this would be Math.pow(2, 4)
-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom