From 3176a4676da510b3b514007b78c1e99148ae576d Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 23 Jan 2004 15:37:06 +0000 Subject: [PATCH] David Culp: One thing I maybe should add to the doc is that the order of operation is always: 1. scale (multiplication) 2. offset (addition) 3. truncate (truncation) This will matter when, for instance, converting from Fahrenheit to Celsius. The normal formula is C = (F - 32) * 0.55555556. The operator precedence above requires a new formula, C = (F * 0.555555556) - 17.777777777. --- Docs/README.xmlpanel.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Docs/README.xmlpanel.html b/Docs/README.xmlpanel.html index 15ab67626..a7a30193e 100644 --- a/Docs/README.xmlpanel.html +++ b/Docs/README.xmlpanel.html @@ -580,7 +580,10 @@ This example is a switch that contains both static and dynamic text:
Note that the value to be displayed can be modified using <scale> for multiplication, -<offset> for addition, and <truncate>true</truncate> for truncation. +<offset> for addition, and <truncate>true</truncate> for truncation. The order of +operation is always scale-offset-truncation, which may require you to adapt your formula. For instance, the +normal conversion from Fahrenheit to Celsius would be C = (F-32)*0.555555556. Because of the order +of operation above you must use the formula C = (F*0.55555556)-17.77777777.