How can i printf 4.42 instead of 4.43, like 4.4289767->4.42 not 4.43 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i printf 4.42 instead of 4.43, like 4.4289767->4.42 not 4.43

10th Dec 2020, 9:27 AM
bá dạo
bá dạo - avatar
3 Answers
10th Dec 2020, 10:09 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
bá dạo , in which programming language? Anyway in many languages there is round method/function to achieve it.
10th Dec 2020, 10:01 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
I use C language
10th Dec 2020, 10:03 AM
bá dạo
bá dạo - avatar