How to use integer rounding modes in C based statechart ?
3 views (last 30 days)
Show older comments
I want to use integer rounding mode "round" in arithmatic operation, inside c- based statechart. Unfortunately "round" function is not supported in C-based statechart so is there any alternative ?
By default flooring operation takes place. e.g. when division operation results in 500.0998 it should be rounded up to 501 when conevrted into integer buts its giving it as 500.
0 Comments
Answers (1)
See Also
Categories
Find more on Complex Logic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!