cancel
Showing results for 
Search instead for 
Did you mean: 

How can i handle floating point number using STM8 ? Anybody have sample code for same ?

DKada.1
Associate

As per attached screen shot 1 of my code it rebuild successfully but when i debugging this code with STM8S discovery evaluation board expected value after code run not shown in watch window as per screen shot 2

1 REPLY 1

Yellow line show instructions which will be executed next ... it means that your assigment to "l" has not yet been executed ... thus in "l" you have last value. This one looks like your initial value .. a "zero" - (there is no like "true zero" in floats ... if i remember correctly).