Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in SQL Server only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
SQL Server
Round Function
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
sonia.sardana
New Member
Join Date:
Jul 2006
Posts:
95
#1
Round Function
Feb 15 '08, 06:59 PM
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
Join Date:
Jun 2007
Posts:
2878
#2
Feb 15 '08, 08:26 PM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment