@echo off
set /a num=10/3,ts=10%%3
set "ts=%ts%000000000"
set /a v=%ts%/3
echo %num%.%v%
pause
@echo off
set /a num=10/1.6180339887498948482045868343656381177203
echo %num%
pause
原帖由 pusofalse 于 2009-5-21 01:03 发表
很遗憾,CMD在运算方面弱得很。不能直接计算小数,而且有最大数的限制。http://bbs.bathome.net/search.php?searchid=37&orderby=lastpost&ascdesc=desc&searchsubmit=yes
原帖由 Batcher 于 2009-5-24 06:23 发表
Windows 脚本技术
http://bbs.bathome.net/thread-1985-1-1.html
mshta vbscript:msgbox(9/1.6180339887498948482045868343656381177203)(window.close)
@echo off
echo WScript.echo (9/1.6180339887498948482045868343656381177203)>testecho.vbs
cscript /nologo testecho.vbs
del testecho.vbs
pause>nul
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |