- Aug
- 2,038
- 82
While TCC does not have a round function, the PSHELL command and/or function can be used to round a number;
..or...
Joe
Code:
echo %@pshell[[math]::Round(22/7)]
3
..or...
Code:
pshell /s "$a=22/7"
echo %@pshell[$a]
3.14285714285714
echo %@pshell[[math]::Round($a)]
3
Joe