Skip to main content
Visitor II
October 10, 2020
Question

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

  • October 10, 2020
  • 1 reply
  • 1198 views

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

    This topic has been closed for replies.

    1 reply

    Graduate II
    October 13, 2020

    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).