CalcPercent » 历史记录 » 版本 1
yangdefeng, 2023-06-23 19:12
1 | 1 | yangdefeng | _*%{color:green}calcPercent%*_ |
---|---|---|---|
2 | 设定值X百分比后四舍五入取整,并存入指定变量 |
||
3 | |||
4 | 标签:命令定义|calcPercent |
||
5 | 标签:命令定义<calcPercent |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 |参数3 | |
||
9 | |calcPercent |设定值 |设定百分比 |返回变量 | |
||
10 | |||
11 | 说明: |
||
12 | * 参数1: 设定值 |
||
13 | |||
14 | * 参数2: 设定百分比 |
||
15 | |||
16 | * 参数3: 返回变量 |
||
17 | |||
18 | |||
19 | - |
||
20 | - |
||
21 | |||
22 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
23 | |||
24 | bq. [@main] |
||
25 | #act |
||
26 | %{color:lightGrey};99的百分之5存储至 N1,N1值为5% |
||
27 | *{color:green}calcPercent* 99 5 n1 |
||
28 | print <$str(n1)> |