Mathematical Functions Flashcards
(7 cards)
1
Q
How to use the square function
A
rSquare : =sqr (4);
2
Q
How to use square root of function
A
rRoot:= Sqrt(16);
3
Q
How to use run function
A
rRounded:= round(number);
4
Q
How to use trunk function
A
iTrunc:= Trunc(number);
5
Q
How do use random function
A
rNum:= Random;
Or
rNum:=Random(number) +1;
6
Q
Div
A
Divides the first number by the second and then discards the remainder
7
Q
Mod
A
Divides the first number by the second then keep only the remainder