Re: Printing decimal without padding
Posted in 1993
To: root@candle.uucp Subject: Re: Printing decimal without padding Newsgroups: comp.databases.informix In-Reply-To: <CG7Hp3.vu@candle.uucp> Organization: Snide Computer Services - Folcroft, PA In article <CG7Hp3.vu@candle.uucp> you write: } Is it possible to print a decimal variable's contents in a report } without it being padded with spaces? If I output 434.23,"X",832.11, I } should get: } } 434.23X832.11 } } I need this because I am outputting a Lotus-format file, and am getting } a line-too-long from Lotus because my file has too much padding: } } 4.32", " 323.12" } } instead of } } 4.32",323.12" } Output your decimals like this: PRINT dec_variable USING "<<<&.&&" DAS -- David Snyder @ Snide Computer Services - Folcroft, PA Current Release is db4glgen-3.16 UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com