Jump to content
Sign in to follow this  
Guest prospector21

xml help, can't display leading zeros

Recommended Posts

Guest prospector21

Having a bit of trouble with one of my gauges in displaying the leading zeros. A four digit display but if that value is less than 1000 only 3 digits display with out leading zero. example of code to display ADF freq as follows: FREQUENCY, enum) 10000/)%!3.1f!Thanks...

Share this post


Link to post
Share on other sites
Guest prospector21

tried that with the following line but no leading zero displayed;%((A:ADF1 ACTIVE FREQUENCY, enum) 1000 /)%!04.1f!Display= 345.1 if less than 1000Display= 1345.1 if greater than 1000Need the display to be fixed: 0345.1Thanks..

Share this post


Link to post
Share on other sites
Guest prospector21

Forgot about the decimal point, works great now, many many thanks...!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...