strtod() problems

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

strtod() problems

跳至解决方案
1,727 次查看
mikey1
Contributor III
I have been building code for the 9S12X processor and only using the integer library.  I now have a need to deal with floating point and so swapped out the lib from ansixli.lib to ansixlf.lib
 
when I try to use the strtod() function I get the wrong results and the function writes over the top of the string that I am trying to parse at the point where the asci representation of the floating point number ends.
 
any recomendations?
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
975 次查看
mikey1
Contributor III
I just answered my own question.  I had selected the wrong floating point lib.  I should have used "ansixl.lib" instead of  "ansixlf.lib"
 
I hope this mistake helps someone else
 
 

在原帖中查看解决方案

0 项奖励
回复
1 回复
976 次查看
mikey1
Contributor III
I just answered my own question.  I had selected the wrong floating point lib.  I should have used "ansixl.lib" instead of  "ansixlf.lib"
 
I hope this mistake helps someone else
 
 
0 项奖励
回复