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.

CC2640R2F: math function roundf() - round to nearest

Part Number: CC2640R2F

Hi!

I am trying to round a number to nearest integer, meaning:

2.3 => 2

2.7 => 3

2.5 => 3

Which function is correct to use here? round() yields only the number before the comma, so it behaves like floor().

Or better, where do I find the documentation of the math functions for CC2640R2F SDK?

Thanks!