How am I incorrectly using the round() function in C?

后端 未结 7 1521
-上瘾入骨i
-上瘾入骨i 2021-02-08 21:42

I\'m getting unexpected results from the round() and roundf() functions in the math.h library. Here is the sample code:

#         


        
7条回答
  •  暖寄归人
    2021-02-08 21:54

    This obviously doesn't help but the code looks and runs as expected for me. Everything seems fine.

提交回复
热议问题