Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

difference between int and numc

Former Member
0 Kudos

what is the difference between integer and numeric

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Hi,

Numeric will allow Numbers & Alphabets

Integer will allow only numbers.

Regards,

Satish

Former Member
0 Kudos

integer contains only 0-9.

numc contains 0-9 and alphabets also

Madhavi

Former Member
0 Kudos

Hi,

numeric variables are treated as characters 0-9 an alphabets

integer varable are numbers

Regards

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

hi eswar,

thanks for ur response.

can u be clear i mean can u explain some thing with that

0 Kudos

Execute below code and i hope it helps you understand:


data: a(10) type c,
      b(10) type n,
      c type i.

 a = '300'.
 b = c = 300.

write:/ a,
      / b,
      / c.

~Eswar

Former Member
0 Kudos

inter will take only numbers

Numc will accept alpthanumeric characteres.