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

后端 未结 7 1544
-上瘾入骨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 22:13

    Looks like you're using it right, describe your environment some?

提交回复
热议问题