SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do your write 2 to the 10 power?

    Hello,

    I need to write this formula in php and I'm not sure how to do it.

    Currently I have this....

    $result = M_PI * $radius^2;

    I need to make $results = M_PI * $radius to the 2nd power.

    How do I write that?

    Thanks
    Thanks for all of your help!!! I'm NEW to php/mysql - 2/05

    View my progress at www.benrud.net

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    $result = M_PI * pow($radius,2);
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $result = M_PI * pow( $radius, 2);

    or

    $result = M_PI * $radius * $radius;

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks u2
    Thanks for all of your help!!! I'm NEW to php/mysql - 2/05

    View my progress at www.benrud.net


Bookmarks

Posting Permissions

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