The reason 1 is generally accepted as the integer equivalent to true is that it is the only other number besides 0 that is available in binary numbers, and boolean values are often stored and manipulated as bits . So, it is safest to use 1 as the integer value for boolean true in your code and 0 as false.