Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ROUNDUP Function 2

Status
Not open for further replies.

GUMDO

Programmer
Joined
Jan 17, 2002
Messages
4
Location
US
Hi,

Any ideas on how to RoundUp in Teradata? I'm having a hard time since I can't even use Round and Cast only rounds down.

Ideas would be greatly appreciated.
 
Hi,
add .5 to the result before the cast?
 

-- takes a number and rounds to the nearest .05
select (cast ( X / .5 as decimal (5,1))) * .5

X = variable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top