Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Is this how formats are supposed to work? Message-ID: <6798@jpl-devvax.JPL.NASA.GOV> Date: 16 Jan 90 02:06:17 GMT References: <1990Jan15.185922.20098@eci386.uucp> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 15 In article <1990Jan15.185922.20098@eci386.uucp> clewis@eci386 (Chris Lewis) writes: : Is there any way to set the display format for numbers in format lines? No. : Assigning "%.2g" to $# (after selecting the handling associated with the : stream) doesn't appear to affect anything and things are printed with : more than 2 decimal places. Maybe it should work this way--I haven't thought about it. Or maybe we need numeric "pictures". For the time being, just slap an sprintf around the variable name. Larry