Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!network.ucsd.edu!news.cerf.net!netlabs!lwall From: lwall@netlabs.com (Larry Wall) Subject: Re: perl pl36 Message-ID: <1993Jun14.171609.7244@netlabs.com> Sender: news@netlabs.com Nntp-Posting-Host: scalpel.netlabs.com Organization: NetLabs, Inc. References: <1vfi5hINNg80@xs4all.hacktic.nl> Date: Mon, 14 Jun 1993 17:16:09 GMT Lines: 14 In article <1vfi5hINNg80@xs4all.hacktic.nl> cor@hacktic.nl (Cor) writes: : Im not sure if this is just a fault on my side, but something weird : with perl. : : perl -e 'printf "%d\n", 1.9' will print 2, and not 1 like its supposed to, : : Is this perhaps a bug in the math library of 386bsd? : Or am I doing something wrong. It works fine on linux and SunOS I doubt it's Perl, since Perl just passes % thingies on to C's sprintf(). Sounds to me like someone got a little too lazy and translated "%d" to "%.0f". Larry Wall lwall@netlabs.com