项目

一般

简介

PerCent » 历史记录 » 版本 2

tejie, 2026-05-09 08:29

1 2 tejie
h4. _*%{color:green}perCent%*_
2
3 1 machenhe
取回两个变量相除后的百分比数值
4
5 2 tejie
标签:命令定义^perCent
6 1 machenhe
7
*格式*
8
|命令名|参数1		|参数2		|参数3		|
9
|equal |返回值变量	|被除数变量	|除数变量	|
10
11
说明:
12 2 tejie
|参数1|返回值变量(整数)|
13
|参数2|被除数变量(整数)|
14
|参数3|除数变量(整数)|
15 1 machenhe
16
17
-
18
-
19
20 2 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
21 1 machenhe
22
bq. [@main]
23
#act
24
[[mov]] n1 2
25
mov n2 3
26
mov s$公式 "percent n$结果值 n1 n2"
27
*{color:green}percent* n$结果值 n1 n2
28
[[messageBox]] <$str(s$公式)>\<$str(n$结果值)>=向下取整(2除以3乘以100)