2
Reply

ceiling an integer in C#

Ask a question

 

 


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