C# 0 The Complete Reference


Decimal The Decimal



Download 4,07 Mb.
Pdf ko'rish
bet789/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   785   786   787   788   789   790   791   792   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

Decimal

The


Decimal

 structure is a bit more complicated than its integer and floating-point relatives. 

It contains many constructors, fields, methods, and operators that help integrate 

decimal

with the other numeric types supported by C#. For example, several of the methods provide 

conversions between 

decimal

 and the other numeric types.



Decimal

 offers eight public constructors. The following six are the most commonly used:

public Decimal(int 

v

)

public Decimal(uint 



v

)

public Decimal(long 



v

)

public Decimal(ulong 



v

)

public Decimal(fl oat 



v

)

public Decimal(double 



v

)

Each constructs a 



Decimal

 from the specified value.

You can also construct a 

Decimal

 by specifying its constituent parts using this constructor:

public Decimal(int 

low

, int 


middle

, int 


high

, bool 


signFlag

, byte 


scaleFactor

)

A decimal value consists of three parts. The first is a 96-bit integer, the second is a sign flag



and the third is a scaling factor. The 96-bit integer is passed in 32-bit chunks through 

low, 

middle,

 and 


high.

 The sign is passed through 



signFlag,

 which is 




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   785   786   787   788   789   790   791   792   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish