Try: double a = 0.1234; strstream c; c << a; cout << c.str() << endl; Cheers, Fons. Michael Katz-Hyman wrote: > > yea, > > but that is the c way not the c++ way > > I am just to enthraled with OOP to use anything less > > any other ideas? > > Mike > > On 12 Jul 1999 lijowski@cosray2.wustl.edu wrote: > > > > > Michael, > > > > Try, > > > > char mystring[50]; > > double mydouble; > > > > sprintf(mystring, "%f", mydouble); > > > > > > Michal Lijowski > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:35 MET