Arduino Forum
"Round" float to one decimal place for printing to OLED
Projects
Programming
jimLee
September 26, 2021, 7:50am
6
Multiply it by 10, round it to an int then divide that by 10 to get your float?
-jim lee
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
How to sprintf a float?
Syntax & Programs
11
121598
May 6, 2021
Only one decimal for a Floating variable ?
Programming
10
46556
May 5, 2021
Decimals printing
Programming
6
594
May 6, 2021
[solved] How to convert float to char* LCD sprintf dtostrf
Programming
7
16453
May 5, 2021
How to convert float to string
Programming
12
16053
May 5, 2021