0% found this document useful (0 votes)
20 views6 pages

Built-In Functions

1) These functions provide ways to manipulate strings, convert between data types, and perform mathematical operations. 2) Core string functions include substring, lowercase, uppercase, length and character codes. Conversion functions change between integer, float, binary and other bases. 3) Mathematical functions calculate values like square root, exponents, trigonometric functions and logarithms. These functions perform essential operations on data.

Uploaded by

faaizaffs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views6 pages

Built-In Functions

1) These functions provide ways to manipulate strings, convert between data types, and perform mathematical operations. 2) Core string functions include substring, lowercase, uppercase, length and character codes. Conversion functions change between integer, float, binary and other bases. 3) Mathematical functions calculate values like square root, exponents, trigonometric functions and logarithms. These functions perform essential operations on data.

Uploaded by

faaizaffs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

NUMERIe FUNCTIONS

int FUNCTION
Retu ms he nuub ea.
TH pa a

t!C Strauwlotu p npex. ene

Sa 47.l
Re $a; olp: 47
Pr 46 In";
nand FUNCTION
2eTns a Aaulo Aakienl nuwbe O the pe twe nuwha Vakne

wen

Steaus ber /pee/ h /pe ens

b rand a ; op: 8 6 5

Sqrt FUNCTION
oo valueD a
R ns

:tc: 8trausbesa/peu/inpe
a 4 p/p: 3
Ainl &bln";

abs FUNETION 2e a striu


wumeL VaUL Yauin

Geks tha absolute valueY a

as agunemt
pasel

:*!Ci strausbe/pe in/pel. exe


&a abs (l:22)
4babs C"abe)
4c: abs Cto); o
4d abs Gt)
prin ta\n";

pvint"$e\n";
print A \ n " ;
eap FUNCTION
Vaue o e" to t pew
R kns te eruponentual
Rwput (e a1ig3)
tC stauwheu/pene /hinpel one
op: 6:5804
a: p();
pstat aln"
lo FUNCTION
Retums the natus th uwwh

testausb ay/pewin /pext: ne

a 2 25
blo 4a olp:0231 4

Sin FUNCTION
Rtus he ine Vae

sArawheupal/bio peat ou
p:08q4
b i n $a,

Cos FUNCTION
a wuwmbeA
Coine Vane
RJun tw
exe
c :&traub /pul/in/pe.
a 30 op: 0 s4AS
b Cos a
pri "b\n",

atana FUNCTION ctoeen -P


andP.

Vue
e aYc tanqcnl
Retu
ee
pul bin / pexl
C : stausbe
a40 o/p:0 S8800
h-bo
4c
atuna ( $a,
heFUNCTtON
lemk
COwveis gwn hwmadeuin wuwhu(hase 16) tuto i A
dedwal nuwb buse lo)
t C: Strauobet/pl/hin/pel. tne
a 3, op: SD
h a a

Oct FUNCTION
Conveuk a s an Oual wwmbu.

C strasben/p in/pa vxe


ab5 op: 53
b : oct 4a;
r "bn";
Svand FUNCTION ach inue The
a oustan V AluA
naka
Helps and union TO

S&uN.

: Staushauy/peal bin pel. ene

$a-0 18
bston a ;

betuoeun anA
10 13 \n"
andow u r b e r
l $eis thQ
wstant wabea \n"
pint biy ta

Yando
mumbu
betueen an 9o.18
s th
9.2168
p:
mstanl wwwwhA.
0 i he
STRING FUNCTIONS
howp FUNCTIoN
ReuoNU te new Une ne ala n" emd
:#*!c Stawbenypel/bin pe oxe
a : hettouwoyl&
nony a
4 Welcome lML" op:hslouso LA weltome

chop FUNCTION
To prit ouly Last naracrer o w t e nd a st

Ctrauob ey peal|in /pea. enme


bavya
ol P C

Ch FUNETION
Os to qee the ASCI V due p e e A chavacken

ci&travs bey/peaL n pe ee
a cx (a
b : cx (3s)
pR 4a \n"; olp:
print "b\";
ent FUNCTON
ty a
FE Cc; Stvauobenay/ peL bn peal. ene
Hlowovi"
Ab
olp 10
ant fa
pi 46\n";
reyeyte FUNCTION
Oist
stng
a HelloworDS
ol: olnowolleH
erese a
substUNCTION
Retuws a ubsti
Te eprou ion upplied stt's
qunemk SYNTAX. ExPR INDEX.,
Shnw)
,
ENGTH, REPLACEM ENT
#Cstrauhey/pe
Ot hellu
bin peal vne
a wol
b Mub 4tr (A, s, 3); olp: woA

c FUNCTtON
Us t AnvNt a shole stviu twto loue ASe

C : strawhumy pul bin pul ene


a HELbwoDLD";
p:helouooAl
b c 4a,
print h\n";
TeING) FUNeTION
UsA twkend u a sic e sMaes
F : srauobeu/perl/ bn/penl.n
sa ellousoria )
olp: ndlowovld
Piu&a";

STING) FUNCTION double otes


UsA wkud t w a

: trausbeany /pol n/peak. exe


4a 44(hellouwoial); olp: helawostd
PRnt a"

I I FUNCTION havaeent wto anutuer s t harockus


a
t a
nanse ena

( pel tanpul.
estrausbe
ewuyee
a ood wuoriy
o G0od mO2NENG eveRyONe
GCoD Mb2NING EVERYoNE
thonp 4a"
ptu a \n".
2A-2 pt a
OC FUNCTtON
Conveut a s t i Iwto Pper ase.
ttC shYo Ip(hin pel ene
a hou are upu' You
How AR6
op:
4bUc$a;
i n "4b \n'

ve ivst FUNCTIoN
rehuxmg a stt witt Jt tettu p e r Case

ttC&trauwbAypeal hin per. ne

4a ouw a ypu"
p: Hsuo are o
46: v $a
prine4b";
le i n t FuNeTION
Cse.
ultea in ower
AAn wit we
.a.

I C : shvausb y pl[min(peal
a HEWD wODLD" ophEllbwORLD
4blef 4a ;
pine4b\u";

ov& FUNCTION
spe(i
olp: T6
a =Ovd " ;
Pi a\n"

withu anomY StÄug


Idex FUNCTIONN
to &rd ene
tn pal.
Peal[
shvaw ba
a Hello wovA"

(4a, w)
ofp:6
b inAn
pRu"4bln"

4cnAen(4o,) ;
r i t 4 c i n

You might also like