Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Documentation for Mod?

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

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

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
Posts: 765
Location: Austin, TX

Posted: 12 March 2006, 4:55 AM    Post subject: Reply with quote

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
Posts: 2493
Location: Portland, OR

Posted: 12 March 2006, 11:30 AM    Post subject: Reply with quote

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:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 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