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)
 Rounding Money Data Types

Author  Topic 

JimL
SQL Slinging Yak Ranger

1537 Posts

Posted - 2003-04-23 : 09:59:10
Ok here is a little brain teaser.
Is there an easy way to round a money type field to the nearest nickel?


Jim

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2003-04-23 : 10:08:56
select convert(int, @Value * 20) / 20.0

- Jeff
Go to Top of Page

JimL
SQL Slinging Yak Ranger

1537 Posts

Posted - 2003-04-23 : 11:37:21
Thanks Jeff.
Have one on me.







Jim
Go to Top of Page
   

- Advertisement -