|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『楼 主』:
在WINDOWS的CMD下如何进行小数点运算?
使用 LLM 解释/回答一下
整数运行是可以的,但是小数点运算却不行,如:
set /a BB=9*0.6 却显示等于0,用set /a BB=9*(0.6)等方式也不行。
在论坛上搜索了一下也没有相关的问题,敬请各位指点!
Integer operations are okay, but decimal point operations are not. For example:
set /a BB=9*0.6 displays 0, and methods like set /a BB=9*(0.6) don't work either.
I searched the forum and didn't find related issues. Please give your advice!
|
|
2007-5-17 17:13 |
|
|
wudixin96
银牌会员
    
积分 1928
发帖 931
注册 2007-1-6
状态 离线
|
|
2007-5-17 17:23 |
|
|
fengzi
中级用户
   金牌会员
积分 315
发帖 152
注册 2007-1-25
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
CMD的计算能力确实比较弱:不直接支持小数的加减乘除。
The computing power of CMD is indeed relatively weak: it does not directly support the addition, subtraction, multiplication and division of decimals.
|
|
2007-5-17 17:25 |
|
|
cain
中级用户
  
积分 201
发帖 72
注册 2005-11-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
那有没有办法通过脚本VBS方式实现小数乘法运算呢?
So, is there a way to implement decimal multiplication operations through the VBS script method?
|
|
2007-5-17 17:36 |
|
|
fengzi
中级用户
   金牌会员
积分 315
发帖 152
注册 2007-1-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
2楼给了你答案了``
The answer is given on the 2nd floor.
|
|
2007-5-17 17:37 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
如果是VBS那就太简单了,只是当位数过长时输出格式有点问题,那个科学计数法不知怎么弄掉
If it's VBS, it's too simple. It's just that the output format has some problems when the number of digits is too long. I don't know how to get rid of that scientific notation.
|

你好,脚本专家!
<a target=blank href=tencent://message/?uin=29654761&Site=www.111.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:29654761:5 alt="点击这里给我发消息"></a> |
|
2007-5-17 19:05 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
模拟人工运算可以解决……大数的乘法,加法和减法……对除法我还不知道怎么写
Simulating manual operations can solve... multiplication, addition, and subtraction of large numbers... I still don't know how to write division.
|
|
2007-5-17 19:12 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
|
2007-5-17 19:14 |
|