This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

rounding a float to an integer

Hi all,

I like to round a float to the nearest integer value and assign the value to an integer. How do I do that in C code?

In know it is something with "round" but I can not find the proper syntacs.

Does someone know?

Regards,

Erik

0