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: 

decimals in type n?

Former Member
0 Kudos

1)can u print decimals in type N?what is the diff bet ween float and packed data type?

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

No, type N is a numeric only, no decimals, if you want decimals, use type P.

data: dec type p decimals 2.

Regards.

Rich Heilman

former_member188685
Active Contributor
0 Kudos

hey when you use type n , no decimals allowed. or use char and print decimals.

convert float to char and show it.

what is the problem with type p.

Regards

Vijay