AnsweredAssumed Answered

Float data doesn't make sense

Question asked by shuang.yu on Feb 28, 2014
Latest reply on Mar 2, 2014 by luca

I set a floating-point (*data) , (*data) = (*data)/(pow(10,Strlen-3-DotPos)),(*data)=1234,pow(10,Strlen-3-DotPos)=100, the result was 12.33999 how did that happen? And I want to get an aprecise result 12.34.  How to do? Right now I am doing my project by your MCU and I am eager to know the answer! Thank you !!yushuang%20float%202.jpgyushuang%20float%203.jpgyushuang%20float%201.jpg

Outcomes