Has anyone noticed that the doc for this says:

The value of this constant is
79,228,162,514,162,514,264,337,593,543,950,335

but that it is actually

99,999,999,999,999,999,999,999,999,999,999,999,999?

Just thinking that Microsoft has a (minor) documentation error that
should be fixed.

Re: SqlDecimal MaxValue by Val

Val
Wed Mar 09 19:41:34 CST 2005

How did you check it?

--
Val Mazur
Microsoft MVP

http://xport.mvps.org



"Chris" <cg22165@yahoo.com> wrote in message
news:1110410039.865389.97790@o13g2000cwo.googlegroups.com...
> Has anyone noticed that the doc for this says:
>
> The value of this constant is
> 79,228,162,514,162,514,264,337,593,543,950,335
>
> but that it is actually
>
> 99,999,999,999,999,999,999,999,999,999,999,999,999?
>
> Just thinking that Microsoft has a (minor) documentation error that
> should be fixed.
>



Re: SqlDecimal MaxValue by Chris

Chris
Thu Mar 10 12:02:33 CST 2005

SqlDecimal sd = SqlDecimal.MaxValue;
Console.WriteLine(sd.ToString());


Re: SqlDecimal MaxValue by Chris

Chris
Thu Mar 10 12:20:40 CST 2005

That and the first line under SqlDecimal structure description is:

Represents a fixed precision and scale numeric value between -10^38 -1
and 10^38 -1...


But even that looks like an error. Shouldn't it be

...-10^38+1 and 10^38-1...

?

There can be up to 38 digits in an SqlDecimal; MaxValue returns

99,999,999,999,999,999,999,999,999,999,999,999,999

MinValue returns

-99,999,999,999,999,999,999,999,999,999,999,999,999

but -10^38-1 is

-100,000,000,000,000,000,000,000,000,000,000,000,001

-Chris