ELTE SEAS

Discussion Forum
It is currently Wed Nov 22, 2017 5:28 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: messed up that bit
PostPosted: Wed Nov 17, 2010 8:24 am 
Offline

Joined: Wed Nov 10, 2004 6:15 pm
Posts: 808
Ida Verebes has called my attention to the fact that the result of dividing x by y in TeX is not int(x/y), since then
Code:
\newcount\mycount
\mycount= -9
\divide\mycount by 5
\the\mycount
would give -2. In fact, it gives -1. The remainder is discarded, which is the int() function only for positive numbers.

_________________
szp


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group