In C, all the number types are, somewhere deep in your computer, actually stored as a row of binary bits, so I wouldn't call a number "decimal" unless it's decimal digits were stored in a string. But aside from that, to get a bit at a specific position in an int, you can make a int that has only a bit in the place in question, compare it to the original int with the bitwise and operator (so that the result has all false bits unless both the ints have a bit in the same position), and then cast the result to a bool. Hope this helps.