Hey Les, Here’s a Lua question. I currently have this code:

```
curX = math.ceil(currentX * scale * 10000) / 10000
curY = math.ceil(currentY * scale * 10000) / 10000
ScEndLine1Txt = "G90G00X"..curX.."Y"..curY - (25.4 * scale)
ScEndLine2Txt = "G01X"..curX.."Y"..curY - (12.7 * scale)
```

These sting lines later get inserted over place holder lines in the final program. Problem here is even by rounding like this (lua doesnt have a specific math.round4 function that I am aware of) sometimes the number comes up exactly say 92.0000000000 and the string ends up with 92 instead of 92.0000. The machine needs to see the decimal and at least one decimal place or it does dumb stuff.

How can this string be made to say “G90G00X92.0000Y31.0000” instead of “G90G00X92Y31”?