[Thread Prev][Thread Next][Index]
Re: [ferret_users] how to integer output
> In ferret how to write integer to a file. I tried using F3.0 but
> it is giving "15.". But I want to omit that decimal also. How can
> I do that in ferret ?
If it's acceptable to process the file afterward outside Ferret,
sed 's/\.0*$//g;s/\.0* / /g' yourtextdata.dat
will remove trailing "." or ".0" or ".00" . . . assuming that
the numbers are separated by blank(s).
Regards,
Ryo
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement