Skip to Content
author's profile photo Former Member
Former Member

Add 2 zeros to end of a number

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 13, 2009 at 07:35 PM

    Multiply with 100.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2009 at 07:47 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2009 at 07:56 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.