Hello, all
within my function I want to set the title of a graphics page with the following code snippet:
the variable ti is read out from an page.info value (I guess it is a double value within the page.info structure)
string legend;
legend = "\\b(Einspritzverläufe K" + kunde + ")\r\n";
legend = legend + "\\b(Vergleich der Einzelinjektoren - FUP: " + (int)fup + " [bar], ";
legend = legend + "t\-(i, main): " + ti + " [ms])";
LTCmd = "title.text$ = " + legend;
LT_execute(LTCmd);
this works so far. But the variable ti shows up as "0.658000000001"
and it should be only "0.658" as lable text!
How can I set the mantisse within a string to enshure it is shown on the graphics page as "0.658"!!
Thanks Hajo
-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg
SVDO_Origin1