EasyManua.ls Logo

Sharp el-9950 - Page 63

Sharp el-9950
266 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
62
Chapter 3: Manual Calculations
int÷ Executes an integer division and returns its quotient and remainder.
Example
• Getaquotientandaremainder
of 50 ÷ 3.
50 int÷ 3
E
*QuotientvalueissettoAns
memory and remainder is not
stored.
remain Returnstheremainderofadivision.
Example
• Obtaintheremainderwhen123
is divided by 5.
1 2 3 remain 5
E
rndCoin Returnsaspeciednumberofrandomintegerstosimulateacoin
ip:0(head)or1(tail).Thesizeofthelist(i.e.,howmanytimesthe
virtual coin is thrown) can be specified. (The same as rndInt (0, 1,
number of times))
Example
• Makethecalculatoripa
virtual coin 4 times.
rndCoin
(
4
)
E
rndDice
Returnsspeciednumberofrandomintegers(1to6)tosimulate
rollingdice.Thesizeofthelist(i.e.,howmanytimesthedieisthrown)
can be specified. (The same as rndInt (1, 6, number of times))
Example
• Makethecalculatorrollavirtualdie11times.
rndDice
(
11
) E
Note: The random functions, (rndCoin and rndDice)will generate
different numbers every time.

Table of Contents

Other manuals for Sharp el-9950

Related product manuals