Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question of division
#1
I am getting a number that is constantly changing, lets say it's int g
what I want to do is divide g by half and out that amount.

example
int g=?
divided by 2
out the remainder of g

is this possible?

I did a search and found example but it was for a fixed amount!
thanks
#2
figured it out thanks anyway!

int g=n
int j b c
j=g
b= 2
c= j/b
out c


Forum Jump:


Users browsing this thread: 1 Guest(s)