delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/16/16:59:46

From: "Stefan Viljoen" <rylan AT intekom DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: "mod" in Pascal equivalent to %??
Date: Sat, 16 Oct 1999 22:20:37 +0300
Organization: The South African Internet Exchange
Lines: 24
Message-ID: <7uamr7$ot8$1@ctb-nnrp2.saix.net>
NNTP-Posting-Host: pc36-01-p50.nt.saix.net
X-Trace: ctb-nnrp2.saix.net 940105383 25512 155.239.194.50 (16 Oct 1999 20:23:03 GMT)
X-Complaints-To: abuse AT saix DOT net
NNTP-Posting-Date: 16 Oct 1999 20:23:03 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi All,

Am I correct in the assumption that the DJGPP (or C?) equivalent for the
"mod" that you find in say, this line of Pascal

total := whatever mod sum;

is

total = whatever % sum;

Is this correct? Is "%" equivalent to "mod" (modulo?) If not, what is
equivalent?

Fanx!

--
This message courtesy of
RylanNet rylan AT intekom DOT co DOT za
http://home.intekom.com/rylan/
--
StarWars for ever!.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019