- Aug

- 1,892

- 66

**%{}**is a shortcut for

**%@execstr**

This works;

Code:

```
E:\Utils>printf "2023 subtract 1947 is %i\n" %@execstr[expr 2023-1947]
2023 subtract 1947 is 76
```

Code:

```
E:\Utils>printf "2023 subtract 1947 is %i\n" %{expr 2023-1947}
Usage : EXPR expression
2023 subtract 1947 is
```

Code:

```
E:\Utils>set result=%{expr 2023-1947}
E:\Utils>echo %result
76
```

This also works;

Code:

```
E:\Utils>echo 2023 subtract 1947 is %{expr 2023-1947}
2023 subtract 1947 is 76
```

Why will

**%{}**not work with

**printf**?

I am aware that I could also use;

Code:

```
E:\Utils>printf "2023 subtract 1947 is %i\n" %@eval[2023-1947]
2023 subtract 1947 is 76
```

**%{}**with

**printf**.

Joe