Categories
How to round down to the smallest integer?
I need to write down its rounded value to the c variable. But this code doesn't work. Why? с = Math.Floor(c);
с = Math.Floor(c);
Answer the question
In order to leave comments, you need to log in
Because Ceiling rounds up. Use Math.Floor(c)
Code please. Here is some documentation that might help.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question