You are viewing a single comment's thread. Return to all comments →
try this for round off::
int roundNo(float num)
{ return num < 0 ? num - 0.5 : num + 0.5; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
try this for round off::
int roundNo(float num)
{ return num < 0 ? num - 0.5 : num + 0.5; }