+ 3
How to roundup a number in C language?
For example : converting 3.7 into 4, 11.4 into 12.
3 Antworten
+ 5
Please do search on the forum or any other services like google, bing, etc before posting a question.
https://www.tutorialspoint.com/c_standard_library/c_function_ceil.htm
+ 2
Lokesh Soni Here's a possible solution:
int num = (int) x + ((int) x < x)
# Hope this helps
+ 1
n = (int)n + ((n - (int)n)?1:0);