2
Answers

ceiling an integer in C#

Photo of ilhami caliskan

ilhami caliskan

11y
11.2k
1

 


Hi All,

int heightGroupBox = (((numberFloor / 3) * 25) + 30);

my code, but numerFloor is an integer and I have problems with ceiling the result,


for example I need 7/3 = 3 or 11/3 = 4 etc.

any suggestions? thanx

 

 

Answers (2)

Next Recommended Forum