[jhb_airlines] Re: XML Debugging tool:

  • From: "bones" <bones@xxxxxxx>
  • To: <jhb_airlines@xxxxxxxxxxxxx>
  • Date: Tue, 16 Oct 2007 12:34:48 +0100

%((A:TOTAL FUEL QUANTITY, gallons)) 100 * %((A:FUEL TOTAL CAPACITY, gallons)) / 
% %3.1f!%
 
The above is not RPN because you have an operand between the two values. 
 
If you want A / B * C then it has to be written as ABC /*. Try:
 
%((A:TOTAL FUEL QUANTITY, gallons) (A:FUEL TOTAL CAPACITY, gallons) 100 / * 
%!3.1f!
 
Can't you just use %((A:TOTAL FUEL QUANTITY, percent) )%!3.1f!  ??
 
bones

-----Original Message-----
From: jhb_airlines-bounce@xxxxxxxxxxxxx 
[mailto:jhb_airlines-bounce@xxxxxxxxxxxxx] On Behalf Of FrankTurley@xxxxxxx
Sent: 16 October 2007 08:20
To: jhb_airlines@xxxxxxxxxxxxx
Subject: [jhb_airlines] Re: XML Debugging tool:



Mike,
 
Sorry, what I meant I wanted was one that steps through XML reverse polish.
 
The one I produced which doesn't work is -
 
%((A:TOTAL FUEL QUANTITY, gallons)) 100 * %((A:FUEL TOTAL CAPACITY, gallons)) / 
% %3.1f!%
 
which is meant to show current fuel percentage.
 
If I could step through it I could spot where its going wrong!
 
Frank T.

Other related posts: