![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
As I showed with the decimal field at the beginning of the records above, you can truncate integer fields by using %N.Ns. Unfortunately, the truncation always occurs on the right regardless of whether you use '-' or not:
Which may not be what you want. The real problem (sic) is floating point numbers, there's just no sensible way to squeeze them into a fixed width field if they stray beyond a limited range:
And its worse if you want or need to maintain point alignment. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^3: Format, empty vars, and fixed-width records
by BrowserUk
|
|