Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    convert Math.pow() function to asp?

    Hello,
    I don't quite understand the Math.pow() function,

    I'm tring to convert this function to asp:

    PHP Code:
    function monthlyPayment(principalinterestyears){
         var 
    intdec Math.pow(interest 2006);
         var 
    numer intdec 1;
         var 
    denom Math.pow(intdec, -12 years);
         var 
    pmt principal numer denom;
         var 
    rndval Math.round(pmt 100) / 100;
         return 
    rndval;

    any help would be great,

    thanks in advance for your time!
    -Ken

  • #2
    New Coder
    Join Date
    Oct 2006
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here:
    math.pow(parameterA, parameterB);
    math.pow means parameterA's parmeterB'th power.
    Get what I mean?


    Shaffer.

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    ah yes,, i've just figured it out before you posted,

    so in asp i can use "parameterA ^ parameterB"

    thanks,
    -Ken


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •