How to cut decimal off without rounding in C

后端 未结 5 1970
无人共我
无人共我 2020-12-01 18:11

How do I cut off decimal places in C without rounding?

For example if the number is 4.48

it will just show 4.4

%.1f

5条回答
提交回复
热议问题