Round Function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonia.sardana
    New Member
    • Jul 2006
    • 95

    Round Function

    1) Select round(34.567,2)
    ANSWER-34.570


    2) select round(34.5321,2 )
    ANSWER- 34.5300

    I want only 34.53 .Not 34.5300.
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by sonia.sardana
    1) Select round(34.567,2)
    ANSWER-34.570


    2) select round(34.5321,2 )
    ANSWER- 34.5300

    I want only 34.53 .Not 34.5300.
    The value is the same. If the reason is for display purposes, you can either parse (substring) it, or handle it on your GUI side and not stress your server.

    -- CK

    Comment

    Working...