This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Round float to nearest integer

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I am searching for a function that rounds my float values to the nearest integer. Unfortunately I could only find a floor() and ceil() function in the math.h.

I am using a F28335.

Thank you in advance.

~ Brian