I was configuring my own OBD2 .xml config file and in the rotation section was wondering whether there was a way to evaluate an arithmetic expression against two returned values:

<?xml version="1.0" encoding="utf-8"?>
....

So I have assigned two returned values to RealDash Dummy variables and was wondering how to go about evaluating the required arithmetic expression and perhaps return to a 3rd dummy value?
So:
= (VAL{MG2 torque} * VAL{MG2 RPM} / 5252
Where MG2 torque and MG2 RPM are stored in two separate targetId dummy variables?

Any links to docs / links on guage math syntax? Especially referencing get/set dummy variables? As these float / double, etc and what are the valid operators?

Gauge Math is not able to set value to targetIds, only read them to set value for that specific gauge. To change the values, use triggers and actions instead.

Does Gauge Math support the use of min(x,y) and max(x,y) math functions, asking as some values of the Prius can be negative (motors charging the HV battery) and positive (HV battery driving the motors)?

or, logical IF/THEN?

if neither, can gauges be set so that they do not try to render negative values?

Does Gauge Math support the use of min(x,y) and max(x,y) math functions, asking as some values of the Prius can be negative (motors charging the HV battery) and positive (HV battery driving the motors)?

or, logical IF/THEN?

if neither, can gauges be set so that they do not try to render negative values?

Does Gauge Math support the use of min(x,y) and max(x,y) math functions, asking as some values of the Prius can be negative (motors charging the HV battery) and positive (HV battery driving the motors)?

Any thoughts on why the below works inconsistently?

Dummy [32] & [27] works just fine, Dummy [20] & [26] I’ve not been able to get to work - even after extensive trial-and-error.

These are legitimate PIDs and Formulas as I have seen these work in the Torque App and I have literally copy-pasted into the below XML?

[20] & [26] I have tried Text Gauge and Bar Gauge and both register no values (0.0), whilst the same PIDs and Formulas are returning valid values in the Torque App?

Great news about the max(), Min(). An Abs() would also be helpful!

I have two dummy variables. One is always positive and the other can be positive or negative sign. When I use Gauge Math to multiply these values it always returns a zero - both on a bar gauge and a text gauge. I have used two text gauges to view these two dummy variable values and I can see properly formed numbers (floats). When I use a third text gauge with the result of multiplying these together, it always shows a zero value. But as I said, one of the dummy variables I am multiplying can be in the range -400 to +400. and the other 0 to 8000.