Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Claus Divossen <cd@phoenix.rhein.de>
Subject: Re: No subject was specified.
Date: 1999/09/26	[thread overview]
Message-ID: <37ED5389.42E21044@phoenix.rhein.de> (raw)
In-Reply-To: 37E813E4.D22C0843@cwo.com.au

Wallace Liu wrote:
> > d=08
> > printf "%02d\n"  $d
> > the system print this message to me:
> > printf: 08 not completely converted
> > 00
> >
> > I come cross this problem on Solaris 2.6 and Compaq UNIX. Why printf command
> > does not complete convert 09 and 08?
> >

Assignments with leading zeros are interpreted as octal values. 09 and
08 are no
valid representations of octal numbers and hence can not be reformated
as numbers.

	- Claus.



  reply	other threads:[~1999-09-26  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-21  4:00 No subject was specified Wallace Liu
1999-09-21  4:00 ` Bob Harris
1999-09-21  4:00 ` Pit Linnartz
1999-09-22  4:00 ` Wallace Liu
1999-09-26  4:00   ` Claus Divossen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-07  4:00 Wallace Liu
1999-09-07  4:00 ` Stuart R. Fuller
1999-01-28  5:00 Joseph H. Lee
1998-11-05  5:00 Joseph H. Lee
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox