Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Convert string to float

20 views
Skip to first unread message

Philippe

unread,
Dec 16, 2009, 4:01:02 PM12/16/09
to
I would like to convert a string to double or float.

In classic C #, I can use
- Convert.ToDouble (MyString) or
- Single.Parse (MyString).

In C Can I use atof ()...

But I can not find the solution. NetMF, someone he has an idea.

Thank you for your help.

Armand R.

unread,
Dec 16, 2009, 11:02:02 PM12/16/09
to
Philippe,

Single.Parse() and Double.Parse() are avaiable in NetMF in System namespace.

-Armand

Pavel Bansky [msft]

unread,
Dec 17, 2009, 1:14:12 AM12/17/09
to Philippe

Jan Kučera

unread,
Dec 17, 2009, 4:09:59 AM12/17/09
to
Starting 3.0 of MF, there is a Double.Parse method, so you can use this one
and cast the result to float if this would be good enough for you...

Jan


"Philippe" <Phil...@discussions.microsoft.com> wrote in message
news:8B0FD607-0F4F-4C7F...@microsoft.com...

0 new messages