Home > Back-end >  . Why c language use % 1 f round are not allowed to be
. Why c language use % 1 f round are not allowed to be

Time:06-02

Can only do your own + 0.5

CodePudding user response:

Code on see, should not format problem

CodePudding user response:

Who told you c language is rounded,,, can be directly interception, this is a very likely outcome

CodePudding user response:

%. 1 f 0.49 can you input output 0.5

%. 0 f 0.5 can you input the output 1

But it's only a matter of the format of the output, the value is not really rounded

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related