Anthony Ballo writes:
> I have two variables that I want to subtract:
>
> ECHO echo setvar _slsnet (!_slsgross - !_gc2) !>!> vtmp1 >> tmp1
> echo :run main.pub.vesoft;STDIN=vtmp1 >> tmp1
> echo %exit >> tmp1
>
> Now, I have a var that looks like this:
>
> _SLSNET = 16916.310547
>
> and I want it to just read 16916.31 (truncate, or round).
MPEX has a ROUND() function. Try something like
echo setvar _slsnet ROUND(100*( !_slsgross - !_gc2 ))//100 !>!> vtmp1
>>tmp1
--Glenn, who hasn't tried it