Results 1 to 3 of 3

Thread: Rounding Up?

  1. #1
    Join Date
    Dec 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Rounding Up?

    Hi all,

    I have been trying to create a script which if the number is between 1-10 it becomes 10, 11-20=20, 21-30=30 etc.

    I know how to use the round() function, but I want to round the number UP, instead of going by 0.5. Is this possible?



    Thanks,
    Rocky.

    EDIT: I know you can use if(something < 10) or whatever, but I do not want to write a million IF statements...

  2. #2
    Join Date
    Dec 2008
    Posts
    28
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    ceil();

    ?

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

    Rocky! (01-03-2009)

  4. #3
    Join Date
    Dec 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile

    Thankyou for the really quick reply Mada, works great, thanks!

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
  •