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: 

Add 2 zeros to end of a number

Former Member
0 Kudos

Hi,

How do you add 2 zero's to the end of a number?

Is the following code okay (12 digit number):

SHIFT value1 LEFT BY 2 PLACES.
    value1+10(2) = '00'.

Thanks,

John

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

Multiply with 100.

Regards,

Naimesh Patel

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

There is a number of ways to do this. Probably the most straight forward way is to CONCATENATE.

Concatenate value1 '00' into value1.

Regards,

Rich Heilman

Former Member
0 Kudos

Rich is correct. The Best method is to concatenate with '00' at the end of the Variable.

Regards,

Irfan

Edited by: Mohammed Naseeruddin Irfan on Jan 13, 2009 2:58 PM