How to make this shorter
#2

You can do that in one very short line.

id = i/2

I guess i is an integer. Dividing one integer by another one will cut off any decimal digits. 6/2=3, 3/2=1, 1/2=0 and so on.
Reply


Messages In This Thread
How to make this shorter - by ikey07 - 28.01.2014, 23:56
Re: How to make this shorter - by Mauzen - 29.01.2014, 00:04
Re: How to make this shorter - by ikey07 - 29.01.2014, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)