Eg;10.68 should be converted to 10.7
Asked
Active
Viewed 49 times
0
-
std::round(x*10.0)/10.0 – BlueTune Apr 16 '20 at 09:00
-
@BlueTune this could lead to overflow. – whiskeyo Apr 16 '20 at 09:02
-
@whiskeyo Yes it could. Shr didnt specify a type. – BlueTune Apr 16 '20 at 09:04
-
What have you tried so far? – samthegolden Apr 16 '20 at 09:17
-
More context is needed. What are you trying to do? Show some code. – n. m. could be an AI Apr 16 '20 at 09:20