Application Development and Automation 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: 
Read only

difference between int and numc

Former Member
0 Likes
3,000

what is the difference between integer and numeric

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,403

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
Read only

Former Member
0 Likes
2,403

Hi,

Numeric will allow Numbers & Alphabets

Integer will allow only numbers.

Regards,

Satish

Read only

Former Member
0 Likes
2,403

integer contains only 0-9.

numc contains 0-9 and alphabets also

Madhavi

Read only

Former Member
0 Likes
2,403

Hi,

numeric variables are treated as characters 0-9 an alphabets

integer varable are numbers

Regards

Read only

0 Likes
2,403

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.

Read only

Former Member
0 Likes
2,404

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

Read only

0 Likes
2,403

hi eswar,

thanks for ur response.

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

Read only

0 Likes
2,403

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

Read only

Former Member
0 Likes
2,403

inter will take only numbers

Numc will accept alpthanumeric characteres.