Programmin custom, 1 and 0 for Yes and No

Discussion in 'ASP General' started by Cyont, Jun 10, 2004.

  1. Cyont

    Cyont Guest

    Hi,
    Is there a programming custom for Yes and No when we convert them into
    numeric? Is usually 1 for Yes and 0 for No, or vice versa?

    Cyont
    Cyont, Jun 10, 2004
    #1
    1. Advertising

  2. Cyont

    Steven Burn Guest

    I personally tend to use;

    Yes = 1
    No = 0

    --

    Regards

    Steven Burn
    Ur I.T. Mate Group
    www.it-mate.co.uk

    Keeping it FREE!


    "Cyont" <> wrote in message
    news:...
    > Hi,
    > Is there a programming custom for Yes and No when we convert them into
    > numeric? Is usually 1 for Yes and 0 for No, or vice versa?
    >
    > Cyont
    >
    >
    Steven Burn, Jun 10, 2004
    #2
    1. Advertising

  3. Cyont

    CJM Guest

    It varies across platforms and languages...

    Most often it is:

    Zero = False
    Non-Zero = True

    Some are more specific: 0 = False, 1 = True
    Alternatives include: 0 = False, -1 = True

    Are you talking generally or about a specific instance?

    Chris

    "Cyont" <> wrote in message
    news:...
    > Hi,
    > Is there a programming custom for Yes and No when we convert them into
    > numeric? Is usually 1 for Yes and 0 for No, or vice versa?
    >
    > Cyont
    >
    >
    CJM, Jun 11, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kathryn Bean

    Socket programmin on Sun Computer

    Kathryn Bean, Oct 12, 2004, in forum: C++
    Replies:
    3
    Views:
    383
    Default User
    Oct 12, 2004
  2. teo
    Replies:
    3
    Views:
    532
  3. Global Institute of Biotechnology
    Replies:
    2
    Views:
    1,382
    marthawillson
    Sep 17, 2010
  4. Global Institute of Biotechnology
    Replies:
    0
    Views:
    414
    Global Institute of Biotechnology
    Nov 28, 2007
  5. Jamie Herre
    Replies:
    1
    Views:
    189
    why the lucky stiff
    Jan 7, 2005
Loading...

Share This Page