Hello

I have a weird situation, it reminds me (many many years ago) of using COBOL and pic statements to align data.

I have to build a file containing the followingdata , to pass to GAMS (Mathematical Modeling Engine)

                     JPYUSD             EURUSD           GBPUSD    
JPYUSD     1.000000000        0.02016       0.113887000
EURUSD    0.020160000        1.000000000      -0.039177000
GBPUSD    0.11388700       -0.0391770      1.000000000

The GAMS barfed, because the Column header are not aligned with the data under it (Exactly aligned, even the "-" has to be aligned) .   I could spend allot of time messing with the alignment, using padding and sprintf statements.

However, I just wanted to check to see if anyone knows a better way of handling this, maybe templates?

Your Thoughts?

Dan

Daniel Wilson

Bayesian Edge Technology & Solutions
90 Holiday Drive
Suite B-1
Solomons, Maryland  20688
(410)-394-6426 Phone
(410)-394-6425 Fax
www.bayesianedge.com

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to