Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - float to char[]
Is there a function, or what is considered the best way, to convert a float to a char[]? any help is appreciated Phill. Jan 16 2004
It's been awhile, but float f; char sz[101]; sprintf(sz, "%G", f); "Phill" <phill pacific.net.au> wrote in message news:bua4bf$2njm$1 digitaldaemon.com...Is there a function, or what is considered the best way, to convert a float to a char[]? any help is appreciated Phill. Jan 16 2004
Thanks mate! (:o)) Phill. "Matthew" <matthew.hat stlsoft.dot.org> wrote in message news:bua595$2p66$1 digitaldaemon.com...It's been awhile, but float f; char sz[101]; sprintf(sz, "%G", f); "Phill" <phill pacific.net.au> wrote in message news:bua4bf$2njm$1 digitaldaemon.com...Is there a function, or what is considered the best way, to convert a float to a char[]? any help is appreciated Phill. Jan 16 2004
Phill <phill pacific.net.au> wrote:Is there a function, or what is considered the best way, to convert a float to a char[]? any help is appreciated Jan 16 2004
sprintf if fine, Im just making a simple calculator for my first outing with the D language. Thanks ! Phill. "Scott Michel" <scottm mordred.cs.ucla.edu> wrote in message news:buac8r$68q$1 digitaldaemon.com...Phill <phill pacific.net.au> wrote:Is there a function, or what is considered the best way, to convert a float to a char[]? any help is appreciated Jan 16 2004
|