[HELP] Read exactly character
#1

Lets suppose i have the Integer:

Код:
1101
How can i read the Least 1 in the RIGHT position?
Reply
#2

pawn Код:
your_variable % 10
Reply
#3

Quote:
Originally Posted by fordawinzz
Посмотреть сообщение
pawn Код:
your_variable % 10
Does not help.

Hot to put in a if Statement?
Reply
#4

you want to download a single digit, one bit?
Reply
#5

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
you want to download a single digit, one bit?
yesss
Reply
#6

So what you're saying is, you want to read (&/or) store the last number in the sequence... Have you thought about converting said interger into a string, and then finding the strings length and stripping it to the second to last number? (Granted this is how I'd do it, but there will be a more convenient way)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)