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 Oracle only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Oracle
Round(45.923, -1)
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
vensriram
New Member
Join Date:
Aug 2010
Posts:
48
#1
Round(45.923, -1)
Feb 11 '11, 05:12 AM
Kindly explain the output of the function
ROUND(45.923, -1)
The answer is being shown as 50
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#2
Feb 11 '11, 05:28 AM
You're rounding to the nearest 10 by passing in -1.
Comment
Post
Cancel
vensriram
New Member
Join Date:
Aug 2010
Posts:
48
#3
Feb 11 '11, 06:17 AM
so if it is
Round(42.365,-1)
it will be rounded to 40
and not 50 right?
Comment
Post
Cancel
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#4
Feb 11 '11, 07:06 AM
Yes, but wouldn't it have been faster for you to run it and see the result rather than wait for someone to respond?
Comment
Post
Cancel
vensriram
New Member
Join Date:
Aug 2010
Posts:
48
#5
Feb 13 '11, 05:58 AM
Hi Rabbit,
Thanks for your reply.
The problem is that,
neither I have SQL nor ORACLE installed in my system
@ my workplace.
If I had that I would not have started this thread.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment