PDM round to two decimal places

On a template card i want to input a number in inches in a text box and convert it to mm in another box using the multiply function but round the result to two decimal places.  I have a function (this was in place before I became an admin) which rounds the mm result to one decimal place, but I cannot quite figure out how to round to 2 places. I am looking for advice on how to change this code to get the result I want.

\\\$Token(\\\$Mul(%TESTINPUT%,25.40)|\\\$Add(\\\$LEFT(\\\$Add(\\\$Mul(%TESTINPUT%,25.40),\\\$Mul(\\\$Token(1|0|0|0|0|0,\\\$Sub(\\\$Len(\\\$Mul(%TESTINPUT%,25.40)),\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1)),|),0.01)),\\\$ADD(\\\$FIND(\\\$Add(\\\$Mul(%TESTINPUT%,25.40),\\\$Mul(\\\$Token(1|0|0|0|0|0,\\\$Sub(\\\$Len(\\\$Mul(%TESTINPUT%,25.40)),\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1)),|),0.01)),.),3)),\\\$Mul(\\\$Token(-1|-2|-3|-4|5|4|3|2|1,\\\$Right(\\\$LEFT(\\\$Add(\\\$Mul(%TESTINPUT%,25.40),\\\$Mul(\\\$Token(1|0|0|0|0|0,\\\$Sub(\\\$Len(\\\$Mul(%TESTINPUT%,25.40)),\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1)),|),0.01)),\\\$ADD(\\\$FIND(\\\$Add(\\\$Mul(%TESTINPUT%,25.40),\\\$Mul(\\\$Token(1|0|0|0|0|0,\\\$Sub(\\\$Len(\\\$Mul(%TESTINPUT%,25.40)),\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1)),|),0.01)),.),3)),1),|),0.01)),\\\$Add(\\\$Div(\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1),\\\$Add(\\\$Find(\\\$Mul(%TESTINPUT%,25.40),.),1)),1),|)

SolidworksSolidworks Pdm/enterprise Pdm
Answers 2
SS
SS 2021-04-09 Best Answer

Hi,
I like a formula, I have some assumptions, but there is no time in such look them to check.
It is possible if .cex the file with the card was attached (with fields and variables) - chances to receive the answer would be more.
Let's look the rights I or not.

JS
JS 2021-04-09

d($Mul(%TESTINPUT%,25.40),.),1)),|),0.01)),.),3)),1),|),0.01)),$Add($Div($Add($Find($Mul(%TESTINPUT%,25.40),.),1),$Add($Find($Mul(%TESTINPUT%,25.40),.),1)),1),|)

I am going to guess here, not being good with code but doing rounding formulas in SW equations, but I would start changing the 1s to a 2 one at a time to see which one does the trick. I would have expected to see a (round xxx,1,1) somewhere but I don't. Sorry I can't help more.