Best way to convert string to number
#1
Posted 25 April 2011 - 09:35 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#2
Posted 25 April 2011 - 10:17 AM
What's the best way in NETMF to get (int)247 from (string)"247" ?
Hope this question is clear I want to convert a number that's in a string to an integer but haven't find a decent way so far.
Have you tried
int i = int.Parse(str);Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#3
Posted 25 April 2011 - 10:53 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#4
Posted 25 April 2011 - 03:28 PM
#5
Posted 25 May 2011 - 12:52 AM
Today LED's, tomorrow, the world!!! Well, OK, maybe servos.
#6
Posted 30 May 2011 - 02:55 PM
Does the .NETMF have the TryParse method?
No it doesn't as far as I've seen. You should try/catch it if there's a chance that it's input
is not always numeric
#7
Posted 30 May 2011 - 04:47 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users