Date: Tue, 10 Jun 1997 09:32:37 +0930 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: roberto@keltia.freenix.fr (Ollivier Robert) Cc: hackers@FreeBSD.ORG Subject: Re: %i conversion in sscanf? Message-ID: <199706100002.JAA02000@genesis.atrad.adelaide.edu.au> In-Reply-To: <19970609223442.26371@keltia.freenix.fr> from Ollivier Robert at "Jun 9, 97 10:34:42 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Ollivier Robert stands accused of saying: > According to Michael Smith: > > It's "fairly" clear that %i might be expected to convert 0xABCDEF45 > > to a negative number - Tcl thinks that way : > > > > silver:/tmp>tclsh > > % expr 0xABCDEF45 > > -1412567227 > > Interesting: > > 244 [22:29] roberto@keltia:~> perl -e 'print 0xABCDEF45 . "\n"' > 2882400069 > > Perl 5.004 Hmm. What internal type does Perl use for numbers? Or does it decide that the constant is too big and use a bignum? > Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706100002.JAA02000>