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: 

convart to another format

former_member198275
Active Contributor
0 Kudos

i have to convart one field cointainingamount 560.00

to 560

means i have to omit .00

how to to it??

5 REPLIES 5

Former Member
0 Kudos

hi,

declare a interger variable and assign this amount to integer variable.

u will get it.

thanks

Former Member
0 Kudos

move to charecter field decimals 0.

move a to b decimals 0.

Former Member
0 Kudos

Hi my friend.

1 - declare a variable type p without decimals.

2 - You can trunc the field, or move it, but will be rounded.

Former Member
0 Kudos

Hi,

declare a veriable of type character than move that data to the cahracter variable then automatic conversion takes place then u can easily print

don forget to reward

regards

Nikesh kumar

former_member198275
Active Contributor
0 Kudos

thanks