Download Print this page

Casio PB-2000C Manual page 52

Hide thumbs Also See for PB-2000C:

Advertisement

Clpg@3
tDtututoC
You jus
htw to bc cæfirl
to eNue
thit
rhe propcr q. coostrucrioû
i$ maæhed with thf
prctH
valuc. or elsc ]ou vill td sam8c
Gults-
is a list of somc olher qr snsruc.
tioos i! additioû
to thw
noled eboE
ft ûrtrudion
OutFùl
'id
,fix
V.f
t
tbc
dæimsl inhgcr
hqdæim.l
inragar
tl@tiûa E itrt
5rru8
rinalc char.G
For funhcr
dctails, s
the @mrond
rcfêrencc iD Part 2.
Nry
lct's entq the RUN @mmnd
to æute
our prcglm
ild
look at thc csuh
RUN E}
R UN
D =6 5 H= 4 1 F - 6 5 .OOO OOO
R eâ d y
H€r
re m
6ec that thc dæimel equivalcnt
of 65 is 65, tlE htrdæimal
equival€nt
is ,{,
ûd
thc floating
poitrt cquiyalot
is 65.00mæ,
Integer notetion in C
In thc pBiow
prcgm,
the dæimal wlue 65 w
coroted
io æordrDæ
yirh rhe
cor-
ffiponding
7r ænstrwtions.
h smc
instircçs,
hrer,
you mùht
Mnt
to includc thG
ætuâl vslu*
s rhey aE iD thc printf
argMmts,
without
conqlion
sher
rhcy are dis-
plaFd.
'Ib do this, you hæ
to spsify
the nlue
æ a
lntcaa
corrraza.
With C, you ro
spocify dÉimsl,
Gtal,
md hædaimd
valû6,
s rcll
s chârutss
as intcgq
@nstute
In the €s
of s chands,
it5 8-bit ASCII
codc is ured whq
ia is sp€cified aE an inl.gs
æmlart.
thc follwing
fomars
to sDæify Elus
or chMcters
of integer ansurs.
65
-
displayed 6 dæiml
ifie8Ê.
65.
0l0l -
displayedsoctalvâluel0l.
IDcludc0inthefisrdigitof
iloctalvaluetospecify
it s an integc
consant-
{hill
*
display€d r
hæd€ind
valuc 41. Includc Or or 0X in rhe fict
t*o
digits of a
h$dÉimal
Bl&
ro spæify it 6 an ittcgcr
ænstet.
A'
-
displapd
il a singlc cbæt€r.
Ircludc
the chaBq
ir siaglc quot6-

Advertisement

loading