13,212
edits
(→Rounding: Sneaky workaround by WoodSTokk from https://forum.flightgear.org/viewtopic.php?f=66&t=37698) |
|||
Line 66: | Line 66: | ||
<tanh> | <tanh> | ||
<value> | <value> | ||
</syntaxhighlight> | |||
== Hints and tips == | |||
=== Rounding === | |||
While there is no element for rounding, this workaround can be used for that: | |||
<syntaxhighlight lang="xml"> | |||
<expression> | |||
<floor> | |||
<sum> | |||
<property>your/property/here</property> | |||
<value>0.5</value> | |||
</sum> | |||
</floor> | |||
</expression> | |||
</syntaxhighlight> | </syntaxhighlight> | ||