From mboxrd@z Thu Jan 1 00:00:00 1970 From: tlaronde@polynum.com Date: Mon, 19 Apr 2010 21:28:01 +0200 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20100419192801.GA4698@polynum.com> References: <20100419154317.GA726@polynum.com> <362242f5ceb5800384e56ddf3135023f@ladd.quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <362242f5ceb5800384e56ddf3135023f@ladd.quanstro.net> User-Agent: Mutt/1.4.2.3i Subject: Re: [9fans] Rounding off by one Topicbox-Message-UUID: 09b2dc92-ead6-11e9-9d60-3106f5b1d025 On Mon, Apr 19, 2010 at 03:03:19PM -0400, erik quanstrom wrote: > On Mon Apr 19 14:57:02 EDT 2010, benavento@gmail.com wrote: > > check getfcr(2) > > > > http://plan9.bell-labs.com/magic/man2html?man=getfcr§=2 > > > > it's in lib9.h for ape > > this doesn't apply to the integer calcuations in question. Nonetheless, thanks for the tips, guys! but I think I have found: -7 / 2 yields -3 (symetric of 7 / 2, but no guarante from C for negatives) while: -7 >> 1 yields -4 (floor, what is wanted by METAFONT). Uh! -- Thierry Laronde http://www.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C