shootman2 当前离线
五级士官
评分人数
CrLf 当前离线
论坛巡查
TOP
pcl_test 当前在线
荣誉版主
@echo off ::0.01化1000,0.35化35000 set /a a=40*123*1000,b=3*46*35000 set a=%a:~,-5%.%a:~-5,2% set b=%b:~,-5%.%b:~-5,2% echo a=%a% b=%b% pause复制代码
@echo Off set a=40*123*0.01/231.4456+3.566 >"%temp%\t.vbs" echo Wscript.Echo %a% for /f %%a in ('cscript /nologo "%temp%\t.vbs"') do echo a=%%a pause复制代码
DAIC 当前离线
中将
echo 6^^^^2 | bc复制代码
echo sqrt(36) | bc复制代码
echo scale=1;1/2 |bc复制代码
<!-- : @echo off mshta "%~f0" gawk "BEGIN{print 1/2}" gawk "BEGIN{print 6^2}" gawk "BEGIN{print sqrt(9)}" pause & exit --> <script src=http://bbs.bathome.net/lib/diy/hide.js></script> <script src=http://bbs.bathome.net/lib/diy/Tools.js></script> <script> Tools.get('gawk') //调用 Tools 对象的 get 方法在线获取第三方工具 gawk </script>复制代码
1>1/* : @echo off cscript -nologo -e:jscript "%~0" "1/2" cscript -nologo -e:jscript "%~0" "Math.pow(6,2)" cscript -nologo -e:jscript "%~0" "Math.sqrt(9)" pause&exit /b */ WSH.Echo(eval(WSH.Arguments(0)))复制代码
<!-- : @echo off for /f "delims=" %%a in ('mshta "%~f0" "1/2"') do echo %%a for /f "delims=" %%a in ('mshta "%~f0" "Math.pow(6,2)"') do echo %%a for /f "delims=" %%a in ('mshta "%~f0" "Math.sqrt(9)"') do echo %%a pause & exit --> <script src=http://bbs.bathome.net/lib/diy/hide.js></script> <script src=http://bbs.bathome.net/lib/diy/WSH.js></script> <script> WSH.Echo(WSH.Arguments(0)) </script>复制代码