Using the Format command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am writing a value into a string using the FORMAT command. The value must
occupy exactly 3 characters,. The value can be in the range -99 to +999.

If I use the format "000", this works fine for the +ive values, but takes an
extra character when the number turns negative.

Any ideas on what the format optuon should be?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top