Re: Newbie Question: decimal variable type

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Blue Streak" <rdlebreton@xxxxxxxxxxx> wrote:

I read somewhere that the decimal variable type
uses 128-bits in memory for each variable.
However, I read from other sources that the
decimal type only uses 96-bits to store the number.

So perform the experiment yourself:

Console.WriteLine(sizeof(decimal) * 8);

Eq.


.