C# 0 The Complete Reference


false  for a positive number  and true



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

false

 for a positive number 

and

true

 for a negative number. The scaling factor is passed in 



scaleFactor,

 which must be a 

value between 0 and 28. This factor specifies the power of 10 (that is, 10

scaleFactor

) by which the 

number is divided, thus yielding its fractional component.

Instead of passing each component separately, you can specify the constituents of a 

Decimal

 in an array of integers, using this constructor:

public Decimal(int[ ] 

parts

)

The first three 



int

s in 


parts

 contain the 96-bit integer value. In 



parts

[3], bit 31 specifies the 

sign flag (0 for positive, 1 for negative), and bits 16 through 23 contain the scale factor.

Decimal

 implements the following interfaces: 



IComparable

,

IComparable

,

IConvertible

,

IFormattable

, and 

IEquatable

.

Here is an example that constructs a 



decimal

 value by hand:

// Manually create a decimal number.

Field


Meaning

public const double Epsilon

The smallest non-zero positive value.

public const double MaxValue

The largest value that a 

double


 can hold.

public const double MinValue

The smallest value that a 

double


 can hold.

public const double NaN

A value that is not a number.

public const double NegativeInfinity

A value representing negative infinity.

public const double PositiveInfinity

A value representing positive infinity.

T

ABLE



 21-6 

Fields Suppor ted by 

Double

www.freepdf-books.com




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   786   787   788   789   790   791   792   793   ...   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