Sql Rounding Up And Down

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flickimp
    New Member
    • Dec 2006
    • 37

    #1

    Sql Rounding Up And Down

    If I have

    17.4

    How do I get it to round down to 17

    and likewise round 17.6 up to 18?

    Round, Ceiling and Floor just arnt working for me?
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by flickimp
    If I have

    17.4

    How do I get it to round down to 17

    and likewise round 17.6 up to 18?

    Round, Ceiling and Floor just arnt working for me?
    try these:

    select round(17.4,0)

    select round(17.6,0)

    Comment

    Working...