Most C compilers offer some variation of the Standard C Library. The VisualDSP++ compiler is no different. However, I've recently encountered a scenario where I need to take a float value, round it to the nearest whole number and then convert it to an int.
This is rather easy using most variations of C, but after attempting to use roundf, I've found that math.h does not include the roundf function.
How can I correctly round my float variables to the nearest int value with VisualDSP++?