Word Document Properties


Chapter 4: Storing and Modifying Information



Download 8,82 Mb.
Pdf ko'rish
bet90/207
Sana16.03.2022
Hajmi8,82 Mb.
#496217
1   ...   86   87   88   89   90   91   92   93   ...   207
Bog'liq
VBA For Dummies 5th Ed.pdf ( PDFDrive )

Chapter 4: Storing and Modifying Information
09_046500 ch04.qxp 12/5/06 5:54 PM Page 93


Working in binary is quite difficult because even small numbers require many
digits. Using either octal (base 8) or hexadecimal (base 16) numbers is easier,
so computers group the output of their switches to work in these two bases,
even though the computer itself still sees just binary numbers. Both octal
(also abbreviated as 
oct
) and hexadecimal (also called 
hex
) convert directly
to base 2. The binary bit positions convert easily to these other two bases, so
VBA doesn’t even support binary numbers directly.
Generally, the need to work with other bases is obvious. The VBA documenta-
tion might provide values in hex for you to use in your program. You might have
to convert a number from one base to another because a program supports only
a specific base. Your program might also rely on 
flags,
which are essentially on
or off indicators based on the value of a specific bit within a number.
Most people don’t work well with other bases of numbers. We just don’t
use them often enough. To keep yourself from going crazy, you can use
the calculator that comes with Windows. Switch to scientific mode by using
the View

Scientific command. Figure 4-4 shows what the Calculator program
looks like. To convert a number by using this program, click the initial base of
the number (Hex, Dec, Oct, or Bin), type any number that you need to convert
to another base into the input area, and then click the base that you want to
see as output. The result is shown in the input area where you typed the orig-
inal number.
Figure 4-4:
The
Calculator
provides 
a fast and
easy method
for
converting
between
numeric
bases.
Figure 4-3:
Seeing 
the actual
content of
the numeric
types
demon-
strates 
their range.
94

Download 8,82 Mb.

Do'stlaringiz bilan baham:
1   ...   86   87   88   89   90   91   92   93   ...   207




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