please dont rip this site

Learning to Program with the Cybiko Handheld Computer Using B2C

Chapter 13 : Math Operations

B2C supports a host of math Operations.  The ordinary operations exist (+, -, *, /,MOD) with which you can do math calculations.  The Order of Operations applies (multiplication and division first, then addition and subtraction) and parentheses are used to change the order of operations. (a=(a+b)*c).

B2C currently supports only integer arithmetic.

dim a as int
a = 5 + 1
print "the answer is ", a
> the answer is 6

Random Numbers

Random numbers are numbers whose value is unpredictable.  You can get a random number with the Rnd() function:

Rnd(x)

Where 'x' is any number.  Rnd(x) will return a number from 0 to 'x' inclusive.

x=rnd(5)+1  'return a number from 1 to 6, like a 6-sided die


file: /Techref/cybiko/b2c/ch13.htm, 1KB, , updated: 2008/6/13 15:51, local time: 2024/11/24 22:05,
TOP NEW HELP FIND: 
18.219.231.197:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/cybiko/b2c/ch13.htm"> cybiko b2c ch13</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .