U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
String to double
https://www.ultimatepp.org/forums/index.php?t=rview&goto=23985&th=4796#msg_23985
How,
edit.GetText() to double
Thanks! ]]>exdatis2009-12-14T10:28:25-00:00Re: String to double
https://www.ultimatepp.org/forums/index.php?t=rview&goto=23986&th=4796#msg_23986
It is not difficult. You can use:
atof(edit.GetData().ToString());
Best regards
Koldo]]>koldo2009-12-14T11:01:40-00:00Re: String to double
https://www.ultimatepp.org/forums/index.php?t=rview&goto=23987&th=4796#msg_23987
double StrDbl(const char* s)
is the U++ way.]]>cbpporter2009-12-14T11:07:36-00:00Re: String to double
https://www.ultimatepp.org/forums/index.php?t=rview&goto=23988&th=4796#msg_23988
easy!
p.s. StrDbl(const char* s) it's work ]]>exdatis2009-12-14T11:08:09-00:00Re: String to double
https://www.ultimatepp.org/forums/index.php?t=rview&goto=23989&th=4796#msg_23989
exdatis wrote on Mon, 14 December 2009 06:08
Thanks,
easy!
p.s. StrDbl(const char* s) it's work
Be aware that if s does not represent double (e.g. is empty), StrDbl returns Null (which is represented by very high negative number and can be tested for using IsNull).