Jun 18, 2002 #1 Will192 Technical User Nov 15, 2002 111 US I have tried using the FLOOR funciton, but run into rounding problems. Is there an alternate to writing a MOD procedure? Thanks in advance for any responses to this post. Will Summers
I have tried using the FLOOR funciton, but run into rounding problems. Is there an alternate to writing a MOD procedure? Thanks in advance for any responses to this post. Will Summers
Jun 18, 2002 1 #2 NathanGriffiths Programmer May 14, 2001 213 NZ Hi, There is a modulus (MOD) operator in T-SQL: % e.g. SELECT 10 % 4 returns: ------ 2 if this is what you are looking for. Nathan Upvote 0 Downvote
Hi, There is a modulus (MOD) operator in T-SQL: % e.g. SELECT 10 % 4 returns: ------ 2 if this is what you are looking for. Nathan
Jun 18, 2002 1 #3 essa2000 Programmer Dec 6, 2000 299 CA Dear ; You can round off using the same function in this style. For two decimals; FLOOR(45.5454*100)/100 it will give you 45.54 For three decimals: FLOOR(45.5454*1000)/1000 it will give you 45.545 Regards, Essa Mughal Upvote 0 Downvote
Dear ; You can round off using the same function in this style. For two decimals; FLOOR(45.5454*100)/100 it will give you 45.54 For three decimals: FLOOR(45.5454*1000)/1000 it will give you 45.545 Regards, Essa Mughal