Viewing 15 posts - 25,861 through 25,875 (of 26,484 total)
Unfortunately, I don't have access to application where I had to use the bankers round. It is my previous employers in-house software, written in COBOL using ISAM databases with all...
May 31, 2007 at 10:27 pm
I think you will finally understand when pigs fly. You just don't seem to get it and I obviously don't have what it takes to convince you otherwise. Like I...
May 31, 2007 at 10:09 pm
Sergiy,
You are definately a Type A personality.
Yes, the money type goes to 4 decimal places, but unfortunately, REAL MONEY doesn't, so going to 4 decimal places doesn't help when the...
May 31, 2007 at 9:57 pm
I reread his post, but not withstanding,, I have never used a bankers round in any statistical or scientific calculation. I have used it in accounting and tax applications.
May 31, 2007 at 9:48 pm
Sergiy,
You are missing the point, there is a use for the bankers round. You are making things more difficult than they really need to be.
Jeff,
I'll take that as your excuse,...
May 31, 2007 at 9:45 pm
Sergiy,
The bankers round isn't meant to be used in scientific or statistical calculations, and nobody missed anything in 5th or 6th grade. I hav had to use the bankers round...
May 31, 2007 at 9:19 pm
Here is a comparision between the function I wrote and the STR method:
select
dbo.fn_BRound(612.945, 2),...
May 31, 2007 at 6:39 pm
Am I doing something wrong here:
select
str(612.945, 10, 2) -- returns 612.95, not...
May 31, 2007 at 5:59 pm
Does Microsoft ever know what's really best? What I implemented has helped. I understand how the indexes can help, but what I still don't understand are statistics. What I have...
May 31, 2007 at 5:29 pm
Here is what I came up with:
CREATE FUNCTION dbo.fn_BRound (
@TestValue decimal(38,12),
@pos int
)
RETURNS money
as begin
return round(@TestValue, @pos, case when (nullif(round(@TestValue * power(cast(10 as decimal(38,12)), @pos),0,1),round((@TestValue * power(cast(10 as...
May 31, 2007 at 3:03 pm
Without digging into myself at the moment, I'd say the problem is using float. This is an imprecise numeric representation. Try changing the floats to a large decimal, and see...
May 31, 2007 at 12:09 pm
Why are you using the view v_div_all in v_rpt? The only field you are using from that view is v_div_All.Div_Dep and this is the same as div.dion from the table...
May 31, 2007 at 12:01 pm
Steve, what about PeopleSoft? Their documentation says their app needs SA privs to the database.
![]()
May 31, 2007 at 11:28 am
To help we will need more information. If you could post the code for your query and the DDL for the table(s)/view(s) used and perhaps some sample data would go...
May 31, 2007 at 9:22 am
Sounds like you are adding requirments to your original request. Can you provide more details as to what you are asking? It also sounds like you need to expand you...
May 30, 2007 at 7:01 pm
Viewing 15 posts - 25,861 through 25,875 (of 26,484 total)