Forum Index
Documentation for Mod?

 
Author Message
victorf



Joined: 01 Jan 2006
Location: Schenectady, New York

Posted: 12 March 2006, 2:41 AM    Post subject: Documentation for Mod?

I searched the ZBasicRef and ZBasicSysLib as well as the ZBasic forum but did not find mention of the routine Mod. Confused Have I missed it? If it is not documented, would someone be kind enough to define it precisely for me Smile

BTW: I DO know and have used Mod in other languages and dialects but I would like to be sure I understand it's use in ZBasic.

Any enlightenment will be appreciated.

Vic
Back to top
mikep



Joined: 24 Sep 2005
Location: Austin, TX

Posted: 12 March 2006, 4:55 AM    Post subject:

Mod: http://www.zbasic.net/doc/ZBasicRef/ZBasicRef24.html and http://www.zbasic.net/doc/ZBasicRef/ZBasicRef25.html
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Location: Portland, OR

Posted: 12 March 2006, 11:30 AM    Post subject:

Mod is an operator similar to the division operator. The result is the remainder of dividing the left operand (dividend) by the right operand (divisor). For signed operands, the result will have the same sign as the dividend.
Back to top
Display posts from previous:   
Page 1 of 1

 



ZBasic Microcontrollers Home
All content Copyright © 2005, 2006, 2007, 2008, 2009, 2010 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group