I\'m getting unexpected results from the round() and roundf() functions in the math.h library. Here is the sample code:
round()
roundf()
math.h
#
This obviously doesn't help but the code looks and runs as expected for me. Everything seems fine.