home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16807 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  838 b 

  1. Xref: sparky comp.lang.c:16807 comp.lang.c++:16578
  2. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  3. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  4. Newsgroups: comp.lang.c,comp.lang.c++
  5. Subject: Re: Converting an int or a float into a string*???
  6. Message-ID: <1992Nov19.182808.9331@klaava.Helsinki.FI>
  7. Date: 19 Nov 92 18:28:08 GMT
  8. References: <1992Nov13.135058.5330@magnus.acs.ohio-state.edu> <mT1cuB12w165w@rhps.chi.il.us>
  9. Organization: University of Helsinki
  10. Lines: 10
  11.  
  12. warlok@rhps.chi.il.us (Jon L Fincher) writes:
  13. >You could try to standard C function fcvt(), which tranlates a float to
  14. >a string.
  15.  
  16. fcvt is not standard, especially not the ANSI/ISO standard.  Just use
  17. sprintf.  (FAQ, 12.3)
  18.  
  19. --
  20. Lars.Wirzenius@helsinki.fi  (finger wirzeniu@klaava.helsinki.fi)
  21.    MS-DOS, you can't live with it, you can live without it.
  22.