Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Round

Author  Topic 

vladimir_grigoro
Yak Posting Veteran

62 Posts

Posted - 2002-08-26 : 01:57:51
Hi all,

I am trying to retrieve from money data type a value just two numbers after decimal point. Example:
I have 123.2364 and 123.2312 and I want to receive 123.23 and 123.23. Independent from waht is after second digit.
How is it the easiest way to do that?

Thanks in advance.


Edited by - vladimir_grigoro on 08/26/2002 02:01:50

nr
SQLTeam MVY

12543 Posts

Posted - 2002-08-26 : 04:24:12
select round(@i,2,1)

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -