How can i handle floating point number using STM8 ? Anybody have sample code for same ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-09 10:31 PM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-13 1:07 PM
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).
