Viewing 15 posts - 4,201 through 4,215 (of 6,036 total)
Cool!
I'm now classified! ![]()
REAL MONEY appears in final report, after FINAL rounding.
The rule from math handbook:
Convert your "real money" to money BEFORE you...
May 31, 2007 at 10:06 pm
Jeff, don't blame SP4.
Blame yourself. ![]()
For implicit conversions you allow when you pass decimal number to float parameter.
Run this and relax:
select convert(float, 612.005), str(612.005,...
May 31, 2007 at 10:00 pm
And for accounting and tax applications you must use accounting and tax data type: money, 4 digits after comma.
Do presentation rounding AFTER last calculation is completed, as school math handbook...
May 31, 2007 at 9:52 pm
If you run
select round(1./3,2) + round(1./3,2) + round(1./3,2)
result will be 0.99.
No matter which rounding you gonna use.
And re-read initial post:
When dealing with large sets of scientific or statistical...
May 31, 2007 at 9:40 pm
Antonio, you don't use #table explicitly in code, but it does not mean they are not used in your query.
CTE just hides it behind the scene, yes, I agree, it's...
May 31, 2007 at 9:10 pm
Jeff, there are no miracles.
CTE with ranking is nothing else but #table with IDENTITY column. Don't you think?
CTE just makes it looking familiar to OO programmers who quickly catch known...
May 31, 2007 at 8:01 pm
You welcome. It's good I bring some good mood to some good people. ![]()
OK, I've got you point about client application.
But, what kind of...
May 31, 2007 at 7:54 pm
The whole idea of that rounding is wrong.
> Over a large set of data, or when many subsequent rounding operations are performed as in digital signal processing, the round-to-even rule...
May 31, 2007 at 7:23 pm
Eric, you need probably read some articles (including topic in BOL) about temp tables and table variables.
Temp table is created in memory and stays there until it's too big. Then...
May 31, 2007 at 2:57 pm
> Found this to be quick and easy.
And absolutely not SQL.
May 31, 2007 at 2:31 pm
Here is the mistake:
... Floor(Abs(@Temp + 0.5 * Sign(@p1)))
May 31, 2007 at 2:22 pm
As one guy said (don't remember who and where
) "It depends"...
May 31, 2007 at 5:29 am
Wait, it's not Friday afternoon yet.
Too early for that query.
![]()
May 31, 2007 at 4:02 am
You overcomplicated this.
Added something which was not in my query:
SELECT @QueryList = IsNull(@QueryList + Comparison , '') +
'(' + ColumnName + ' ' +...
May 31, 2007 at 3:12 am
Viewing 15 posts - 4,201 through 4,215 (of 6,036 total)