CodePudding user response:
Code on see, should not format problemCodePudding user response:
Who told you c language is rounded,,, can be directly interception, this is a very likely outcomeCodePudding 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.htmlI hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html