11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UNow the numbers are between 0 and 52 in size. They could be used for choosing the 52cards in a deck.BUTwe usually want whole numbers like 7 and 23 rather than decimal numbers like 7.03 and23.62. Get them by using the INT function.oumm.THE INT FUNCTIONThe INT function takes the number in its parentheses and throws away the decimal part,leaving an integer. Change the program above and run again:29 N=INT(N]HOW IT WORKSUse this one line program:10PRINTINT(2.5]to check how INT( ) works. Run it many times and try these numbers in the ( ): 0.3, 0.5,0.9,1.0,1.1,1.49,1.51,1.999. In each case, see that INT( ) throws away just the decimalpart of the number.76O

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!