Working with NMF 4.2, VS2010 launches a NotImplementedException when I try to do the next conversion
Convert.ToDouble("0.0");
Doesn't the ToDouble() method work in NMF 4.2?
Thanks!
  | ||||||||||||||
Convert.ToDouble
Started by Travis B., Nov 07 2011 04:15 PM
4 replies to this topic
#1Posted 07 November 2011 - 04:15 PM
Hello!
Working with NMF 4.2, VS2010 launches a NotImplementedException when I try to do the next conversion Convert.ToDouble("0.0"); Doesn't the ToDouble() method work in NMF 4.2? Thanks! #2Posted 07 November 2011 - 04:18 PM
Hi Travis,
Could this perhaps be related with http://netduino.code....com/workitem/2 ?
Did it work on 4.1? Can't test it myself right now.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs #3Posted 07 November 2011 - 04:56 PM
Travis, avoid using double, unless strictly necessary.
The double has an impact much heavier than a simple float (Single).
However, that's not involving your particular problem.
Cheers
Biggest fault of Netduino? It runs by electricity.
#4Posted 07 November 2011 - 06:03 PM
It seems to be the same problem, but VS launches the same exception after calling the Double.Parse("0.0") method.
I don't know, I need to work on NMF 4.2
I know that, but how can I convert a string into a single directly? I might convert the string into a double and then convert the double into a single, isn't it? (Single)Convert.ToDouble("0.0"); #5Posted 08 November 2011 - 05:06 AM Now I don't remember: is there the float.Parse("123.4f") function?
Biggest fault of Netduino? It runs by electricity.
0 user(s) are reading this topic0 members, 0 guests, 0 anonymous users | ||||||||||||||
|
||||||||||||||
This webpage is licensed under a Creative Commons Attribution-ShareAlike License. | ||||||||||||||