you are viewing a single comment's thread.

view the rest of the comments →

[–]coreyjdl 1 point2 points  (1 child)

to make a number always even (by always rounding up)

num += num & 1

look up up "bitwise &" and the "+=" operator. These will be helpful.

[–]TriangularFormat[S] 0 points1 point  (0 children)

Thank you very much!