Type : INCONNU
The code does not consume any external data; it is a macro function definition that operates on scalar parameters.
| 1 | %macro AHGmyput(var,fmt); |
| 2 | %local digital roundto; |
| 3 | %let digital=%scan(&fmt,2,.); |
| 4 | %let roundto=%substr(0.00000000000000,1,%eval(&digital+1))1; |
| 5 | put(round(&var,&roundto),&fmt) |
| 6 | %mend; |