ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Techique

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Techique

    I have a 13.2 numeric and I want to send it to a printer file like this:

    The amount = $1,624.00

    Which edit code would I use to float the number to the left taking out the zeros and moving the number to the left most position?

    Thanks,

    DAC

  • #2
    Re: Techique

    edit code 1....but you'll have to move it to a char field if you want to left justify it.
    Code:
    mychar = %editc(mynum:'1');
    then put mychar on your O specs.
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Techique

      DAC,
      You can find your answers easily yourself. From the RSE editor, just click F1 - it opens the RPG reference manual. In the search box type "edit code" and you will get everything you ever needed to know about numeric editing.

      Comment

      Working...
      X