Results 1 to 4 of 4

Thread: php math function

  1. #1
    Join Date
    Aug 2009
    Posts
    74
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default php math function

    hello ,

    i want a function that converts

    a=3.1567

    then it should be converted as

    a=3.2
    (dont tell me about ceil() )

    if it is simple help me out

  2. #2
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    PHP Code:
    echo round(3.158951); 
    I bet you could have figured this one out yourself.

  3. The Following User Says Thank You to JasonDFR For This Useful Post:

    hemi (10-06-2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    74
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default

    you won ur bet

  5. #4
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you

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
  •