How to use integer rounding modes in C based statechart ?
Mostrar comentarios más antiguos
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.
Respuestas (1)
Abhishek Ballaney
el 30 de En. de 2018
0 votos
https://in.mathworks.com/help/simulink/slref/coder.ceval.html
1 comentario
Swapnil Kulkarni
el 31 de En. de 2018
Categorías
Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!