Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Formatted Text Syntax - XML

Featured Replies

  • Moderator

I am trying to calculate the estimated time to a VOR/DME and display as MM:SS. DME miles/groundspeed * 60 gives me minutes.decimal minutes......the minutes will display, but how can I get the seconds? *:-* %((A:NAV1 DME, nmiles) (A:GPS GROUND SPEED, knots) / 60 * s8 0 > and)%{if}%(l8)%!02d!:%(l8 60 /)%!02d!%{else}00:00%{end}The above is part of a formatted text string:

(A:GPS drives nav1,bool) 0 ==		{tabs=8L,125L,247L,370L}				%{fnt1}{clr}WPT {fnt}{clr2}%((A:NAV1 IDENT, string))%!s!				%{fnt1}t{clr}BRG {fnt}{clr2}%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP BEARING, degrees) d360)%!03d!{dplo= }{fnt1} M%{end}				%{fnt1}t{clr}DIS {fnt}{clr2}%((A:NAV1 HAS DME, bool) (A:NAV1 DME, nmiles) s9 0 > and)%{if}%(l9)%!04.2f!{fnt1} NM%{else}-- --.-- --%{end}%{end}				%{fnt1}t{clr}ETE {fnt}{clr2}%((A:NAV1 DME, nmiles) (A:GPS GROUND SPEED, knots) / 60 * s8 0 > and)%{if}%(l8)%!02d!:%(l8 60 /)%!02d!%{else}00:00%{end}				%			(A:GPS drives nav1,bool)		{tabs=8L,125L,247L,370L}				%{fnt1}{clr}WPT {fnt}{clr2}%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP NEXT ID, string))%!s!%{end}				%{fnt1}t{clr}BRG {fnt}{clr2}%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP BEARING, degrees) d360)%!03d!{dplo= }{fnt1} M%{end}				%{fnt1}t{clr}DIS {fnt}{clr2}%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP DISTANCE, nautical miles) abs)%!04.2f!{fnt1}NM%				%{fnt1}t{clr}ETE {fnt}{clr2}%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS WP ETE, hours) flr 100 %)%!02d!:%((A:GPS WP ETE, minutes) flr 60 %)%!02d!%{else}_ _:_ _%{end}				%			

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.