Round up to next whole number

  • Any body have any idea how I can round up to the next highest number?

    For example:  If the number is a whole number like 1 or 2 return that number.  If the number is 1.32 then return next whole number rounded up, 2.

    (The Round function seems to only change the number of decimals that are visible.)

    Thanks in advance.

  • How about using using the CEILING Function

    e.g. from BOL

    SELECT CEILING($123.45), CEILING($-123.45), CEILING($0.0)

    GO

    --------- --------- -------------------------

    124.00    -123.00    0.00                    

     

    hth

     

    David

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply