怎么才能把一个变量返回出来的数字去掉小数点
比如我是%ap_damage% = 100.000
怎么用papi的变量把.000去掉
papi有个math 但是我不会用
比如我是%ap_damage% = 100.000
怎么用papi的变量把.000去掉
papi有个math 但是我不会用
直接
%math_0:_{ap_damage}%
math的写法示例基本都在这里了https://github.com/Andre601/Math-expansion
旧版本的Placeholder有%math_FLOOR({ap_damage})%或者%math_{ap_damage}[precision:0]%的写法,不过新版本就是上面那种了
%math_0:_{ap_damage}%
math的写法示例基本都在这里了https://github.com/Andre601/Math-expansion
旧版本的Placeholder有%math_FLOOR({ap_damage})%或者%math_{ap_damage}[precision:0]%的写法,不过新版本就是上面那种了
楼下牛批,已经给出了答案