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!

Function To Drop Decimal numbers 4

Status
Not open for further replies.

Thuky

MIS
Joined
Jun 3, 2003
Messages
24
Location
US
Hi all,

Can anyone let me know what function to drop decimal numbers? For example the number is 200.75 and when I run my stored procedure, it should pull out only 200 (it will not pull out the decimal point and numbers after).

Thanks!!!
 
Try this:
Round(yournumber,0)

-VJ
 
Thanks, amorous for your help!
 
Round won't truncate the decimal portion, it will round.

So you may be looking for floor() (round downward) or ceiling() (round upward) as well.
 
Convert works, too, depending on what you're doing with the number, but floor(number) is less typing. :-)
 
Thanks for all your helps. I am very appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top