Sign in to follow this  
Guest prospector21

xml help, can't display leading zeros

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

Try putting a zero in front of the decimal -- !03.1f!. That should fix you up...--Jon

Share this post


Link to post
Share on other sites

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

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