Hi Scott,
That's great, thanks. Perhaps you can enlighten me on something else. What I'm actually trying to do is get a dro value to a modbus device. Now, if I use this formula in a brain I get the fractional part of the DRO: (A-Int(A))*10000. But it seems that DROs are actually stored to greater than 4 decimal places. So if for instance if the DRO actual value is 0.71539, what's displayed in mach3 is 0.7154, but what gets sent to my device is 7153 (i.e. the digits after the 4th dp get truncated rather than rounded). (This is all a supposition based on what's displayed in Brainview). I'm not clear which math operators I can use - for instance I would have thought Round() would be the solution but it doesn't seem to work. Do you know what math operators are available (I hadn't realised Abs worked until you suggested it), or alternatively another way to do what I'm trying to accomplish?
Thanks again,
Luke