You recently answered a question about changes in "format" with the new
release as shown in the text below.

"If you want to print the number as an integer in a four-digit field,"
"then convert it to an integer using the (integer) function first:"

"(format nil "%04d" (integer ( * (fetch TopPad) 1.0E-4)))"

When I tried to use the following

(bind ?pos4-11 (format nil "%4d" (integer (* (fetch TopPad) 0.001))))

for a TopPad value of 502500, I do not get the expected [per Unix man
pages] addition of "0" added to the left.

Expected 0502

Received " "502.

Sometimes the value for TopPad will have 4 digits, sometimes it will
have 3. Must I check the length and pad on my own?

Thanks
Jeff Ruff

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to