Forum Replies Created

Viewing 15 posts - 25,861 through 25,875 (of 26,484 total)

  • RE: Bankers Rounding

    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...

  • RE: Bankers Rounding

    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...

  • RE: Bankers Rounding

    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...

  • RE: Bankers Rounding

    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.

  • RE: Bankers Rounding

    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,...

  • RE: Bankers Rounding

    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...

  • RE: Bankers Rounding

    Here is a comparision between the function I wrote and the STR method:

    select

    dbo.fn_BRound(612.945, 2),...

  • RE: Bankers Rounding

    Am I doing something wrong here:

    select

    str(612.945, 10, 2) -- returns 612.95, not...

  • RE: Statistics Explained

    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...

  • RE: Bankers Rounding

    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...

  • RE: Bankers Rounding

    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...

  • RE: About worktable

    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...

  • RE: Granting SA Privilege on a Server with Multiple Instances

    Steve, what about PeopleSoft?  Their documentation says their app needs SA privs to the database.

  • RE: About worktable

    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...

  • RE: trouble with aggegate functions

    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...

Viewing 15 posts - 25,861 through 25,875 (of 26,484 total)