fwrite, decimal places

Meredith Croke mcroke at AIRDAT.COM
Tue Feb 6 14:02:02 EST 2007


Hi,

I am trying to write a grads script that outputs a .dat file, the problem I
am running into is I can't seem to figure out how to tell grads how many
decimal places I want to use.  I tried 'set dignum 2' but this didn't do
anything.  My write line is as follows:
f=write(test.dat,ds' 'hs' 'df' 'hf' 0'fff' 'TF' 'TF1' 'TF2' 'TF3' 'TF4'
'TF5' 'TF6' 'TF7' 'TF8' 'TF9,append)

Is there anyway I can set the T's to REAL and declare how many numbers
beyond the decimal point I want?

Thanks,

Meredith



More information about the gradsusr mailing list