Tool/software: Code Composer Studio
Hello,
I see that the float values become erroneous beyond certain value of 10^10. Why is this happening? What is the reliable range for float.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hello,
I see that the float values become erroneous beyond certain value of 10^10. Why is this happening? What is the reliable range for float.
It is not the case that all integer values can be exactly represented in floating point representation. Your code shows one integer value that cannot be exactly represented in the type float. For more background, perform an internet search on the term can all integers be exactly represented in float.
Thanks and regards,
-George