Skip to Content
author's profile photo Former Member
Former Member

difference between int and numc

what is the difference between integer and numeric

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:07 AM

    Hi,

    Type N can only take digits not alphabets.

    The difference between type N and I is that in type N the digits are treated are characters and acts according to length.

    Regards

    Eswar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 07:36 AM

    Hi,

    Numeric will allow Numbers & Alphabets

    Integer will allow only numbers.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 07:36 AM

    integer contains only 0-9.

    numc contains 0-9 and alphabets also

    Madhavi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 07:42 AM

    Hi,

    numeric variables are treated as characters 0-9 an alphabets

    integer varable are numbers

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi sathiesh and madhavi,

      u gave as numeric takes both digits and alphabits.But,

      when i am going to do the below thing it is giving the

      output as

      B 020

      data :A type i,

      B(3) type n,

      C type d,

      D type c.

      C = '20071220'.

      A = 100.

      D = 'a'.

      B = '20a'.

      write :/'A = ', A, 'B = ', B, 'C = ', C, 'D= ', D.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:15 AM

    inter will take only numbers

    Numc will accept alpthanumeric characteres.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.