Answer the question
In order to leave comments, you need to log in
How to round up a number in golang?
I need to always round a number up, for example, 11.3 -> 12. As far as I know, math.Round() rounds up to the nearest, not up. Can you tell me how can I achieve the desired result?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question