Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 34,104
Total Threads: 151,145
Total Posts: 637,827
There are 111 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Other Programming Languages :

Pascal - MOD help needed

Thread title: Pascal - MOD help needed
Reply    
    Thread tools Search this thread Display Modes  
05-29-2007, 09:37 PM
#1
hewy is offline hewy
Status: Member
Join date: May 2006
Location: UK
Expertise:
Software:
 
Posts: 294
iTrader: 3 / 80%
 

hewy is on a distinguished road

  Old  Pascal - MOD help needed

Hey,

I have a test tomorrow on pascal and can't quite grasp the MOD function in pascal.

-100 MOD 8 = -4

I thought it was the remainder? -100/8 = 12.5 answer = 5?

Can someone clarify?

Reply With Quote
05-25-2009, 02:57 PM
#2
cqpreson is offline cqpreson
Status: I'm new around here
Join date: May 2009
Location:
Expertise:
Software:
 
Posts: 1
iTrader: 0 / 0%
 

cqpreson is on a distinguished road

  Old

Hi,
In my view,the awswer is -4.
-100 div 8 = 12,-100 mod 8 = -100 - (12*8) = -4.

Reply With Quote
Reply    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed