Float is changing the actual value | Cypress Semiconductor
Float is changing the actual value
I'm trying to get first decimal from a float, however when I'm debigging the aplication it changes the actual value for exmaple:
float test = 5.1;
The debugger says that the value stored is 5.0999999, the same issue is happenning with
float test = 5.100001;
debugger says that test = 5.100004.
With this issue I can't get the fist decimal.