Difference between revisions of "CommonFormula"

Jump to: navigation, search
(operators)
Line 7: Line 7:
  
 
=operators=
 
=operators=
{| {{prettytable}}
+
==max(a,b)==
!Function!!description!!Example
+
return the maximum between a and b
|-
+
==min(a,b)==
|max(a,b)||return the maximum between a and b
+
return the minimum between a and b
|-
+
==abs(a)==
|min(a,b)||return the minimum between a and b
+
return the absolute value of a
|-
+
==roundCeil(a,b)==
|abs(a)||return the absolute value of a
+
return the a value round top to b
|-
+
 
|roundCeil(a,b)||return the a value round top to b||roundCeil(106,5) return 110
+
Example:
|}
+
<pre>roundCeil(106,5) return 110</pre>
  
 
=variables=
 
=variables=

Revision as of 08:09, 3 April 2010

conditional processing

(test) ? true-case : false-case

=conditional processing with operator OR/AND

( test1 OR test2 ) ? true-case : false-case
( test1 AND test2 ) ? true-case : false-case

operators

max(a,b)

return the maximum between a and b

min(a,b)

return the minimum between a and b

abs(a)

return the absolute value of a

roundCeil(a,b)

return the a value round top to b

Example:

roundCeil(106,5) return 110

variables

%DURATION

flight time input into the form

%COUNTER_DEPARTURE

counter departure input into the form

%COUNTER_ARRIVAL

counter arrival input into the form