Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!dftsrv!iris613!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.sys.sgi Subject: Re: real to character converter Message-ID: <1008@dftsrv.gsfc.nasa.gov> Date: 26 Feb 90 20:15:22 GMT References: <9002261609.AA20841@aero4.larc.nasa.gov> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.UUCP (John H Merritt) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 19 In article <9002261609.AA20841@aero4.larc.nasa.gov> blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS294 x42854") writes: > > I don't know of any way to do it in FORTRAN, however, I noticed >some C routines that might do what you want: ecvt,fcvt,gcvt. Check >section 3 of your UNIX manuals. Use an internal write! character *80 cnum x = 1.2345 write(cnum,'(f10.3)') x and for C use sprintf. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ John H. Merritt # Yesterday I knew nothing, Applied Research Corporation # Today I know that. merritt@iris613.gsfc.nasa.gov #